public ActionResult Edit(UserViewModel userViewModel) { User user = AutoMapper.Mapper.Map <UserViewModel, User>(userViewModel); User userView = userDetails.GetDetailsById(user.UserId); return(View(userView)); }