public ActionResult SearchCollection(DateTime startDate, DateTime endDate) { var viewModel = new DisbursementRetrievalViewModel() { GroupedItemDisbursements = itemDisbursementService.groupItemDisbursementsByDateRange(startDate, endDate) }; return(View("Collection", viewModel)); }
public ActionResult Index() { var viewModel = new DisbursementRetrievalViewModel() { Disbursements = disbursementService.GetAll().Where(x => x.Status == CustomStatus.ForRetrieval).ToList(), GroupedItemDisbursements = itemDisbursementService.groupItemDisbursementByItemID() }; return(View(viewModel)); }