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)); }
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))); }