public IEnumerable <Award> GetAll() { try { return(DAL.GetAll().ToArray()); } catch (Exception e) { Logger.Logger.CreateLog(e); return(null); } }
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); } }
public IEnumerable <Award> GetAll() { return(awardDAL.GetAll()); }
public IEnumerable <AwardDTO> GetAll() { return(dal.GetAll().ToArray()); }