สร้าง file api บรรจุ

This commit is contained in:
Kittapath 2023-06-29 13:09:49 +07:00
parent d387cc68bc
commit 385d37c985
15 changed files with 2500 additions and 6 deletions

View file

@ -0,0 +1,27 @@
using BMA.EHR.Application.Repositories;
using BMA.EHR.Domain.Common;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace BMA.EHR.Placement.Service.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class PlacementController : BaseController
{
private readonly PlacementRepository _repository;
public PlacementController(PlacementRepository repository)
{
_repository = repository;
}
[HttpGet]
public async Task<ActionResult<ResponseObject>> Get()
{
var data = await _repository.GetAllAsync();
return Success(data);
}
}
}