示例#1
0
        public async Task <ActionResult> IndexPages(string tabId, int parentId)
        {
            var result = _pageService.InitPageList(parentId);
            var model  = PageListViewModel.Create(result, tabId, parentId);

            return(await JsonHtml("Index", model));
        }
示例#2
0
        public ActionResult <PageDto> GetEmployees(int page = 0, int size = 4)
        {
            PageListViewModel <Employee> pageListView;

            pageListView = PageListViewModel <Employee> .Create(_context.Employees.ToList(), page, size);

            return(Ok(_mapper.Map <PageDto>(pageListView)));
        }