Beispiel #1
0
 /// <summary>
 /// Deletes Holiday
 /// </summary>
 /// <param name="holiday"></param>
 /// <returns></returns>
 public bool DeleteHoliday(HolidayViewModel holiday)
 {
     try
     {
         Holiday deleteHoliday = BusinessMapper.MapHolidayViewModelToBusinessModel(holiday);
         return(_businessDaysRepository.DeleteHoliday(deleteHoliday));
     }
     catch (Exception ex)
     {
         _logger.Log(ex, LogLevel.Error, ex.Message);
         return(false);
     }
 }