Add MetaData Table From ExistData
Change to use MySQL
This commit is contained in:
parent
89de09d213
commit
a0b3b13074
136 changed files with 3438 additions and 1237 deletions
|
|
@ -1,33 +1,27 @@
|
|||
using BMA.EHR.Application.Repositories.Prefix;
|
||||
using BMA.EHR.Application.Repositories;
|
||||
using BMA.EHR.Domain.Common;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace BMA.EHR.MetaData.Service.Controllers
|
||||
{
|
||||
[Route("api/prefix")]
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[Authorize]
|
||||
public class PrefixController : BaseController
|
||||
{
|
||||
private readonly PrefixRepository _prefixRepository;
|
||||
private readonly IHttpContextAccessor _httpContextAccessor;
|
||||
private readonly PrefixRepository _repository;
|
||||
|
||||
public PrefixController(PrefixRepository prefixRepository,
|
||||
IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
|
||||
public PrefixController(PrefixRepository repository)
|
||||
{
|
||||
_prefixRepository = prefixRepository;
|
||||
_httpContextAccessor = httpContextAccessor;
|
||||
_repository = repository;
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public async Task<ActionResult<ResponseObject>> GetAllAsync()
|
||||
public async Task<ActionResult<ResponseObject>> Get()
|
||||
{
|
||||
var data = await _prefixRepository.GetAllAsync();
|
||||
var data = await _repository.GetAllAsync();
|
||||
|
||||
return Success(data);
|
||||
}
|
||||
|
||||
//[HttpGet("user")]
|
||||
//public
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue