Exemple #1
0
        public async Task <AssetAMS> GetAssetAMS(string id)
        {
            var data = (await _repository.GetAsync(e =>
                                                   e.Id == id)).Items.FirstOrDefault();

            return(data);
        }
Exemple #2
0
 public async Task <PageResult <DTOClass> > GetAllDtoClass()
 {
     return(await repository.GetAsync());
 }
Exemple #3
0
        public async Task <IEnumerable <Lesson> > GetLessonAll()
        {
            var data = await _repository.GetAsync(predicate : null);

            return(data.Items);
        }
Exemple #4
0
 public async Task <PageResult <Activity> > GetAllActivity()
 {
     return(await _repository.GetAsync(predicate : null));
 }