public ActionResult EditLeadTimes(LeadTimeInformation info) { if (ModelState.IsValid) { using (var iRepo = new ImportRepository()) { iRepo.UpdateLeadTimes(info); } return(RedirectToAction("LeadTimes")); } return(View(info)); }