Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using ZID.Automat.Application;
using ZID.Automat.Dto.Models;

namespace ZID.Automat.Api.Controllers.Admin
{
[Route("[controller]")]
[ApiController]
public class ABorrowController : ControllerBase
{
private readonly IABorrowService _borrowService;
public ABorrowController(IABorrowService borrowService)
{
_borrowService = borrowService;
}

[HttpGet("GetBorrowedItems")]
//[Authorize]
public IActionResult GetBorrowedItems()
{
return Ok();
}

//Set Borrow Item to returned
[HttpPatch("SetReturnedBorrowed")]
public IActionResult SetReturnedBorrowed()
{
return Ok();
}
}
}
29 changes: 29 additions & 0 deletions ZID.Automat/src/ZID.Automat.Application/Admin/ABorrowService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZID.Automat.Domain.Models;
using ZID.Automat.Dto.Models;
using ZID.Automat.Repository;

namespace ZID.Automat.Application
{
public class ABorrowService : IABorrowService
{
private readonly IRepositoryRead _repositoryRead;

public ABorrowService(IRepositoryRead repositoryRead)
{
_repositoryRead = repositoryRead;
}


}

public interface IABorrowService
{

}
}