Beispiel #1
0
 public IPagedList <Gift> GetRegistry(int pageSize, int pageNumber, int categoryId)
 {
     _loggingService.LogDebug(string.Format("Retrieving {0} gifts from page {1} in category {2}", pageSize, pageNumber, categoryId));
     return(categoryId == 0 ? _giftRepository.GetPagedGifts(pageSize, pageNumber) : _giftRepository.GetPagedGiftsForCategory(pageSize, pageNumber, categoryId));
 }