public string UpdateNoAttendCardEmployeesRd(T_HR_NOATTENDCARDEMPLOYEES entOTRd) { using (NoAttendCardEmployeesBLL bllOverTimeRecord = new NoAttendCardEmployeesBLL()) { string str = string.Empty; if (bllOverTimeRecord.Update(entOTRd) == 1) { str = "Sucess"; } else { str = "false"; } return(str); } }
public string AddNoAttendCardEmployeesRd(T_HR_NOATTENDCARDEMPLOYEES entOTRd) { using (NoAttendCardEmployeesBLL bllOverTimeRecord = new NoAttendCardEmployeesBLL()) { string str = string.Empty; if (bllOverTimeRecord.GetRecordByID(entOTRd.NOATTENDCARDEMPLOYEESID) != null) { bllOverTimeRecord.Update(entOTRd); str = "Sucess"; } else { if (bllOverTimeRecord.Add(entOTRd)) { str = "Sucess"; } else { str = "false"; } } return(str); } }
public string UpdateNoAttendCardEmployeesRd(T_HR_NOATTENDCARDEMPLOYEES entOTRd) { using (NoAttendCardEmployeesBLL bllOverTimeRecord = new NoAttendCardEmployeesBLL()) { string str = string.Empty; if (bllOverTimeRecord.Update(entOTRd)==1) { str = "Sucess"; } else str = "false"; return str; } }
public string AddNoAttendCardEmployeesRd(T_HR_NOATTENDCARDEMPLOYEES entOTRd) { using (NoAttendCardEmployeesBLL bllOverTimeRecord = new NoAttendCardEmployeesBLL()) { string str = string.Empty; if (bllOverTimeRecord.GetRecordByID(entOTRd.NOATTENDCARDEMPLOYEESID) != null) { bllOverTimeRecord.Update(entOTRd); str = "Sucess"; } else { if (bllOverTimeRecord.Add(entOTRd)) { str = "Sucess"; } else str = "false"; } return str; } }