예제 #1
0
 public ActionResult EditUser(UserViewModel user)
 {
     using (var admin = new AuthenticationServiceClient())
     {
         Mapper.Initialize(o => o.CreateMap <UserViewModel, AuthenticationService.UserDataContract>());
         var userEdit = Mapper.Map <UserViewModel, AuthenticationService.UserDataContract> (user);
         admin.EditUser(userEdit);
     }
     return(RedirectToAction("Index", "Admin"));
 }