This commit is contained in:
Suphonchai Phoonsawat 2023-06-28 12:58:45 +07:00
parent ea6cfb0e98
commit b0228a5277
8 changed files with 9381 additions and 112 deletions

View file

@ -1,6 +1,7 @@
using BMA.EHR.Application.Common.Interfaces;
using BMA.EHR.Domain.Models.MetaData;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Application.Repositories
{
@ -13,5 +14,12 @@ namespace BMA.EHR.Application.Repositories
_dbContext = dbContext;
_httpContextAccessor = httpContextAccessor;
}
public async Task<IEnumerable<Prefix>> FindByNameAsync(string name)
{
var data = await _dbContext.Set<Prefix>().Where(x => x.Name == name).ToListAsync();
return data;
}
}
}