Exemplo n.º 1
0
 public int Update(HoursRecords pObjHoursRecords)
 {
     try
     {
         return(mObjHoursRecordsTableDAO.Update(pObjHoursRecords));
     }
     catch (Exception lObjException)
     {
         LogService.WriteError(string.Format("[HoursRecordsService - Update: {0}]", lObjException.Message));
         throw lObjException;
     }
 }
Exemplo n.º 2
0
        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;
            }
        }