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")); }