public ActionResult Edit_(Goal viewModelGoal) { // This would be the manual process, using the update hard coded. // Better use the UpdateModel integrated in the framework! UpdateModel(viewModelGoal); var goals = new Goals(SessionProvider.CurrentSession); var currentGoal = goals.GetById(viewModelGoal.Id); currentGoal.Description = viewModelGoal.Description; currentGoal.Name = viewModelGoal.Name; currentGoal.Web = viewModelGoal.Web; goals.Update(currentGoal); return RedirectToAction("Details", new { Id = currentGoal.Id }); }