Esempio n. 1
0
 /// <summary>
 /// The method returns check by userID
 /// </summary>
 /// <param name="userId">ID user</param>
 /// <returns>return IEnumerable Models.Check</returns>
 public Task <IEnumerable <Models.Check> > GetUserChecks(string userId)
 {
     return(Task.FromResult(repository.Set <Check>(check => check.refUser == userId).Select(c => buildEntity.NewCheck(c))));
 }