示例#1
0
        public ActionResult Users()
        {
            List <UserViewModel> users = new List <UserViewModel>();

            using (var admin = new AuthenticationServiceClient())
            {
                foreach (var item in admin.GetUsers())
                {
                    var tt = item.Group;
                    users.Add(new UserViewModel
                    {
                        Id        = item.Id,
                        Name      = item.Name,
                        Group     = item.Group,
                        Password  = item.Password,
                        IsDeleted = item.IsDeleted
                    });
                }
            }
            return(View(users.AsEnumerable()));
        }