public int Update(TransitHoursRecords pObjTransitHoursRecords) { try { return(mObjTransitHoursRecordsTableDAO.Update(pObjTransitHoursRecords)); } catch (Exception lObjException) { LogService.WriteError(string.Format("[TransitHoursRecordsService - Update]: {0}", lObjException.Message)); throw lObjException; } }
public int Add(TransitHoursRecords pObjTransitHoursRecords) { try { int result = mObjTransitHoursRecordsTableDAO.Add(pObjTransitHoursRecords); //string lStrCode = new QueryManager().Max<string>("Code", string.Format("[@{0}]", mObjEmployeesTableDAO.GetUserTableName())); return(result); } catch (Exception lObjException) { LogService.WriteError(string.Format("[TransitHoursRecordsService - Add]: {0}", lObjException.Message)); throw lObjException; } }