Beispiel #1
0
        public ActionResult EditUser(int id)
        {
            UserViewModel userEdit = new UserViewModel();

            using (var admin = new AuthenticationServiceClient())
            {
                var user = admin.GetUserById(id);
                userEdit.Id        = user.Id;
                userEdit.Name      = user.Name;
                userEdit.Password  = user.Password;
                userEdit.IsDeleted = user.IsDeleted;
                userEdit.Group     = user.Group;
            }
            return(View(userEdit));
        }
        public Task <User> FindByIdAsync(Guid userId)
        {
            var user = _service.GetUserById(userId);

            return(Task.FromResult <User>(user));
        }