public static BirthdayMessageLog GetBirthdayMessageLog(string birthdayMessageDay) { try { BirthdayMessageLogDAO birthdayMessageLogDAO = new BirthdayMessageLogDAO(); return birthdayMessageLogDAO.GetBirthdayMessageLog(birthdayMessageDay); } catch (ApplicationException) { throw; } catch (Exception ex) { // log this exception log4net.Util.LogLog.Error(ex.Message, ex); // wrap it and rethrow throw new ApplicationException(SR.BusinessGetBirthdayMessageLogException, ex); } }
public static void UpdateBirthdayMessageLog(BirthdayMessageLog birthdayMessageLog) { try { BirthdayMessageLogDAO birthdayMessageLogDAO = new BirthdayMessageLogDAO(); birthdayMessageLogDAO.UpdateBirthdayMessageLog(birthdayMessageLog); } catch (ApplicationException) { throw; } catch (Exception ex) { // log this exception log4net.Util.LogLog.Error(ex.Message, ex); // wrap it and rethrow throw new ApplicationException(SR.BusinessUpdateBirthdayMessageLogException, ex); } }
public static BirthdayMessageLogCollection GetBirthdayMessageLogList(BirthdayMessageLogColumns orderBy, string orderDirection) { try { BirthdayMessageLogDAO birthdayMessageLogDAO = new BirthdayMessageLogDAO(); return birthdayMessageLogDAO.GetBirthdayMessageLogList(orderBy, orderDirection); } catch (ApplicationException) { throw; } catch (Exception ex) { // log this exception log4net.Util.LogLog.Error(ex.Message, ex); // wrap it and rethrow throw new ApplicationException(SR.BusinessGetBirthdayMessageLogListException, ex); } }