Beispiel #1
0
        // GET: ContractorRequirements/PresentationDelete/5
        public async Task <ActionResult> PresentationDelete(int?presentationID)
        {
            if (presentationID == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Presentation presentation = await presentationRepository.FindByIdAsync(presentationID.Value);

            if (presentation == null)
            {
                return(HttpNotFound());
            }
            var presentationViewModel = new PresentationViewModel(presentation);

            return(View(presentationViewModel));
        }
Beispiel #2
0
        public async Task <ActionResult> PresentationDelete(int?presentationID, int requirementID, int customerID, int contractorID)
        {
            if (presentationID == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Presentation presentation = await presentationRepository.FindByIdAsync(presentationID.Value);

            if (presentation == null)
            {
                return(HttpNotFound());
            }
            ViewBag.CustomerID   = customerID;
            ViewBag.ContractorId = contractorID;

            var presentationViewModel = new PresentationViewModel(presentation);

            return(View(presentationViewModel));
        }