コード例 #1
0
ファイル: UserManager.cs プロジェクト: VorXal/xt_net_web
 public void RemoveUserByID(string id)
 {
     if (_userDAO.GetUserByID(id).Awards.Count != 0)
     {
         List <Award> awards = _awardDAO.GetAllAwards();
         foreach (Award a in awards)
         {
             a.Users.Remove(a.Users.FirstOrDefault(n => n == id));
         }
         _awardDAO.UpdateDatabase(awards);
     }
     _userDAO.RemoveUserByID(id);
 }
コード例 #2
0
 public IEnumerable <Award> GetAll()
 {
     return(_awardDAL.GetAllAwards());
 }
コード例 #3
0
 public List <Award> GetAllAwards()
 {
     return(_awardDAO.GetAllAwards());
 }
コード例 #4
0
ファイル: AwardLogic.cs プロジェクト: kola011235/MVC
 public ICollection <Award> GetAllAwards()
 {
     return(awardDAO.GetAllAwards());
 }