Beispiel #1
0
        public async Task <ActionResult> PresentationsIndex(int requirementID)
        {
            var presentations = await requirementRepository.FindPresentationsAsync(requirementID);

            var presentationsListViewModel = new PresentationListViewModel(presentations);

            return(View(presentationsListViewModel));
        }
Beispiel #2
0
        public async Task <ActionResult> PresentationsIndex(int requirementID, int customerID, int contractorID)
        {
            var presentations = await requirementRepository.FindPresentationsAsync(requirementID);

            var presentationsListViewModel = new PresentationListViewModel(presentations);

            ViewBag.CustomerID   = customerID;
            ViewBag.ContractorId = contractorID;

            return(View(presentationsListViewModel));
        }