Пример #1
0
 public IEnumerable <Award> GetAll()
 {
     try
     {
         return(DAL.GetAll().ToArray());
     }
     catch (Exception e)
     {
         Logger.Logger.CreateLog(e);
         return(null);
     }
 }
Пример #2
0
 public IEnumerable <Award> GetUsersAllAward(Guid idUs)
 {
     try
     {
         return(DAL.GetAll().Where(x => x.IdUser == idUs).Join(DALAward.GetAll(), x => x.IdAward, y => y.Id, (x, y) => y).ToArray());
     }
     catch (Exception e)
     {
         Logger.Logger.CreateLog(e);
         return(null);
     }
 }
Пример #3
0
 public IEnumerable <Award> GetAll()
 {
     return(awardDAL.GetAll());
 }
Пример #4
0
 public IEnumerable <AwardDTO> GetAll()
 {
     return(dal.GetAll().ToArray());
 }