完善单位定义界面
This commit is contained in:
@@ -36,6 +36,13 @@ namespace Yi.Framework.Service.Base.Crud
|
||||
protected IRepository<TEntity> Repository { get; set; }
|
||||
|
||||
|
||||
public async Task<List<TGetListOutputDto>> GetListAsync()
|
||||
{
|
||||
var entitys = await Repository.GetListAsync();
|
||||
var entityDtos = await MapToGetListOutputDtosAsync(entitys);
|
||||
return entityDtos;
|
||||
}
|
||||
|
||||
public async Task<TGetOutputDto> GetByIdAsync(TKey id)
|
||||
{
|
||||
var entity = await GetEntityByIdAsync(id);
|
||||
|
||||
Reference in New Issue
Block a user