public Result UpdateReworkTask(tblRework reworks) { IProduction iProductionSelect = new WCMS_DAL_Production(); Result _Result = new Result(); try { if (reworks.Status == "S") { reworks.StartDate = DateTime.Now; } _Result.IsSuccess = iProductionSelect.UpdateReworkTask(reworks); } catch (Exception ex) { throw ex; } return(_Result); }