public ActionResult EditRate(physician_rate physicianRate) { if (ModelState.IsValid) { physicianRate.rat_modified_by = loggedInUser.Id; physicianRate.rat_modified_by_name = loggedInUser.FullName; physicianRate.rat_modified_date = DateTime.Now; physicianRate.rat_range = physicianRate.rat_starting + " - " + physicianRate.rat_ending; physicianRate.rat_shift_name = Enum.GetName(typeof(PhysicianShifts), physicianRate.rat_shift_id); _rateService.Edit(physicianRate); return(ShowSuccessMessageOnly("Physician Productivity Rate Successfully Updated", physicianRate)); } return(GetErrorResult(physicianRate)); }