public List <AddressViewModel> GetSoulMasters(int currentPage, int pageSize = AppSettings.PageSize) { var addressQueries = new AccountQueries(_context); var query = addressQueries.QuerySoulMasters().Skip((currentPage - 1) * pageSize).Take(pageSize); return(query.AsEnumerable() .Select(AddressViewModel.FromSoulMaster) .ToList()); }
public int GetSoulsMasterCount() { var addressQueries = new AccountQueries(_context); return(addressQueries.QuerySoulMasters().Count()); }