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

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

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