Exemple #1
0
        public async Task <SearchResult <MailViewModel> > Search(string tenantId, int page, int pageSize)
        {
            var result = await _mailRepository.Search(tenantId, page, pageSize, out int totalRows);

            return(new SearchResult <MailViewModel> {
                Items = result,
                TotalRows = totalRows
            });
        }