public ActionResult Edit(int id, RequestModel rm) { try { // TODO: Add update logic here ClientRequestForm request = sr.GetById((long)id); request.Description = rm.Description; request.StartDate = rm.StartDate; request.EndDate = rm.EndDate; request.Fees = rm.Fees; request.ProfileNeeded = rm.ProfileNeeded; request.Type = rm.Type; request.YearsOfExperience = rm.YearsOfExperience; request.IdProject = rm.IdProject; sr.Update(request); sr.Commit(); return(RedirectToAction("Index")); } catch (Exception ex) { return(View(rm)); } }