public async Task <int> CountAsync(Rm request) { var queryable = request.GetOrderedData(Repository.Get()); var count = await queryable.CountAsync(); return(count); }
public async Task <List <Vm> > SearchAsync(Rm request) { IQueryable <Collection> queryable = request.GetOrderedData(Repository.Get()).Include(y => y.Student); queryable = request.SkipAndTake(queryable); var list = await queryable.ToListAsync(); return(list.ConvertAll(x => new Vm(x))); }