Пример #1
0
        public async Task <ActionResult> Index(string tabId, int parentId)
        {
            var result = _service.InitList(parentId);
            var model  = UserGroupListViewModel.Create(result, tabId, parentId);

            return(await JsonHtml("Index", model));
        }
        public ActionResult Index(int page = 1, int pageSize = 25)
        {
            PageRequest            pageRequest            = new PageRequest(page, pageSize);
            IPage <UserGroup>      financialBrokerPools   = UserGroupService.GetAll(pageRequest);
            UserGroupListViewModel userGroupListViewModel = new UserGroupListViewModel(financialBrokerPools);

            return(View("Index", userGroupListViewModel));
        }
        public async Task <IActionResult> Index(Guid application)
        {
            var model = new UserGroupListViewModel()
            {
                Application  = application,
                Applications = await Registry.GetApplications(),
                UserGroups   = await Server.GetUserGroups(application)
            };

            return(View(model));
        }