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); } }
public Deal AddDealService(Deal deal) { return(dealRepository.AddDeal(deal)); }