public int UpdateApprovedStatusOfTimesheet(WeeklyTimeSheetEntity clsTS, string strStatus, out string exMessage) { try { int iStatus; IWeeklyTimesheet iwTSheet = new WeeklyTimeSheet(this.ConnectionString); iStatus = iwTSheet.UpdateApprovedStatusOfTimesheet(clsTS, strStatus, out exMessage); return(iStatus); } catch (Exception ex) { //ObjNLog.Error(string.Format("Exception Raised {0}", ex.Message)); throw ex; } }
public int DeleteWeeklyTimesheet(WeeklyTimeSheetEntity WTSE, out string exMessage) { try { int iResult = 0; exMessage = null; SaveTimeSheets clsSaveTimeSheets = new SaveTimeSheets(this.ConnectionString); iResult = clsSaveTimeSheets.DeleteWeeklyTimesheet(WTSE, out exMessage); return(iResult); } catch (Exception ex) { //ObjNLog.Error(string.Format("Exception Raised {0}", ex.Message)); throw ex; } }