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