public ActionResult Edit(int id, User userDetails)// { try { var dbContext = new MyDBDataContext(); Mapper.CreateMap<learningmvc.user,>(); var user = Mapper.Map<learningmvc.user,learningmvc.models.user>(userDetails); dbContext.SubmitChanges(); return RedirectToAction("Index"); } catch { return View(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)