Example #1
0
 public Task <List <ProgressModel> > GetByUserIdAync(long id)
 {
     return(Queryable.Where(ProgressExpression.UserId(id)).Select(ProgressExpression.Model).ToListAsync());
 }
Example #2
0
 public Task <ProgressModel> GetByIdAsync(long id)
 {
     return(Queryable.Where(ProgressExpression.Id(id)).Select(ProgressExpression.Model).SingleOrDefaultAsync());
 }