Training
This commit is contained in:
parent
ea6cfb0e98
commit
b0228a5277
8 changed files with 9381 additions and 112 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue