コード例 #1
0
        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());
        }
コード例 #2
0
        public int GetSoulsMasterCount()
        {
            var addressQueries = new AccountQueries(_context);

            return(addressQueries.QuerySoulMasters().Count());
        }