public async Task <AssetAMS> GetAssetAMS(string id) { var data = (await _repository.GetAsync(e => e.Id == id)).Items.FirstOrDefault(); return(data); }
public async Task <PageResult <DTOClass> > GetAllDtoClass() { return(await repository.GetAsync()); }
public async Task <IEnumerable <Lesson> > GetLessonAll() { var data = await _repository.GetAsync(predicate : null); return(data.Items); }
public async Task <PageResult <Activity> > GetAllActivity() { return(await _repository.GetAsync(predicate : null)); }