public ActionResult Edit(int id, WorkDay dayEdit, FormCollection collection) { try { // TODO: Add update logic here _workHistory.EditWorkDay(dayEdit); return(RedirectToAction("Index")); } catch (Exception ex) { return(View()); } }