public void Add(Award award)
        {
            if (award == null)
            {
                throw new ArgumentException("Не выбрана награда");
            }

            AwardsDAO.Add(award);
        }
示例#2
0
 public bool Add(string awardTitle)
 {
     if (string.IsNullOrWhiteSpace(awardTitle))
     {
         return(false);
     }
     else
     {
         try
         {
             cacheLogic.Delete(allAwardsCacheKey);
             awardsDAO.Add(new Award {
                 Title = awardTitle,
             });
         }
         catch (Exception)
         {
             throw new Exception();
         }
         return(true);
     }
 }
示例#3
0
 public void Add(Award award)
 {
     _awardsDAO.Add(award);
 }