예제 #1
0
        public ActionResult SearchCollection(DateTime startDate, DateTime endDate)
        {
            var viewModel = new DisbursementRetrievalViewModel()
            {
                GroupedItemDisbursements = itemDisbursementService.groupItemDisbursementsByDateRange(startDate, endDate)
            };

            return(View("Collection", viewModel));
        }
예제 #2
0
        public ActionResult Index()
        {
            var viewModel = new DisbursementRetrievalViewModel()
            {
                Disbursements            = disbursementService.GetAll().Where(x => x.Status == CustomStatus.ForRetrieval).ToList(),
                GroupedItemDisbursements = itemDisbursementService.groupItemDisbursementByItemID()
            };

            return(View(viewModel));
        }