public bool Update(int id, DataOvertimeVM dataOvertimeVM)
 {
     if (string.IsNullOrWhiteSpace(dataOvertimeVM.Activity))
     {
         return(status);
     }
     else if (string.IsNullOrWhiteSpace(Convert.ToString(dataOvertimeVM.Start_Overtime)))
     {
         return(status);
     }
     else if (string.IsNullOrWhiteSpace(Convert.ToString(dataOvertimeVM.End_Overtime)))
     {
         return(status);
     }
     else if (string.IsNullOrWhiteSpace(dataOvertimeVM.Attachment_Overtime))
     {
         return(status);
     }
     else if (string.IsNullOrWhiteSpace(Convert.ToString(dataOvertimeVM.Pay_Overtime)))
     {
         return(status);
     }
     else
     {
         return(dataOvertime.Update(id, dataOvertimeVM));
     }
 }
 public void Update(int?id, DataOvertimeParam param)
 {
     _dataovertimeRepository.Update(id, param);
 }