AutoMapper Update Actions in ASP.NET MVC
问题 This is probably quite straight forward for some, however I'm a bit confused and can't find a decent example. Say I'm using view models and my POST action takes in that view model. Typically I would do something along the following lines: [HttpPost] public ActionResult Update(UserViewModel uvm) { User user = Mapper.Map<UserViewModel, User>(uvm); _repository.Update(user); return RedirectToAction("Index"); } Although this isn't the full picture. The mapping would work fine, however if I were to