Ejemplo n.º 1
0
        public async Task <IPagedList <EmailAccount> > Get([FromQuery] PaginationSearchViewModel viewModel)
        {
            await AuthorizeReadAsync(EmailAccountFunctionName);

            return(await _emailAccountService.GetPagedListAsync(viewModel.Page, viewModel.Size));
        }
Ejemplo n.º 2
0
        public async Task <IPagedList <ActivityLogType> > Get([FromQuery] PaginationSearchViewModel viewModel)
        {
            await AuthorizeReadAsync(ActivityLogFunctionName);

            return(await _activityLogService.GetLogTypePagedListAsync(viewModel.Page, viewModel.Size));
        }
        public async Task <IPagedList <NewsItem> > Get([FromQuery] PaginationSearchViewModel viewModel)
        {
            await AuthorizeReadAsync(NewsFunctionName);

            return(await _newsService.GetPagedListAsync(viewModel.Page, viewModel.Size));
        }