コード例 #1
0
ファイル: AdminController.cs プロジェクト: Alekseyya/ASP.net
 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"));
 }