Пример #1
0
 public int AddDeal(string content, DateTime startTime, int duration)
 {
     try
     {
         return(dealRepository.AddDeal(content, startTime, duration));
     }
     catch (Exception ex)
     {
         ex.LogExceptionToFile();
         throw new Exception(ex.Message);
     }
 }
Пример #2
0
 public Deal AddDealService(Deal deal)
 {
     return(dealRepository.AddDeal(deal));
 }