Ejemplo n.º 1
0
        public async Task <ActionResult> Index()
        {
            var roles = (await _userAppService.GetRoles()).Items;
            var dicts = await ds.FindListAsync(x => x.ParentId == (int)EnumList.Location);

            var model = new UserListViewModel
            {
                Roles = roles,
                Dicts = dicts
            };

            return(View(model));
        }