Esempio n. 1
0
        public ActionResult GuestFolioReport(DateTime?startDate, DateTime?endDate, int?page)
        {
            startDate = startDate ?? DateTime.Now.AddMonths(-1);
            endDate   = endDate ?? DateTime.Now.AddMonths(1);

            const int pageSize      = 1;
            var       entirelist    = _guestService.GetByQuery(HotelID).Where(x => x.IsActive);
            var       paginatedList = new PaginatedList <Guest>(entirelist, page ?? 0, pageSize, startDate, endDate);

            var avm = new AdminViewModel
            {
                PaginatedGuestList = paginatedList
            };

            return(View(avm));
        }