public ActionResult VendorProposal(VendorSubmitProposalRequest svp) { IPurchasingService purchasingService = new PurchasingServiceClient(); try { purchasingService.SubmitVendorProposal(new SubmitVendorProposalRequest(svp)); } catch (Exception) { throw; } return(RedirectToAction("Index")); }
public ActionResult VendorProposal(VendorSubmitProposalRequest svp) { IPurchasingService purchasingService = new PurchasingServiceClient(); try { purchasingService.SubmitVendorProposal(new SubmitVendorProposalRequest(svp)); } catch (Exception) { throw; } return RedirectToAction("Index"); }
public ActionResult CreateRfp(RequestForProposal rfp) { IPurchasingService purchasingService = new PurchasingServiceClient(); rfp.Status = "active"; string[] invitedVendors = Request.Form["InvitedVendors"].Split(','); foreach (var invitedVendor in invitedVendors) { rfp.InvitedVendors.Add(VendorRepository.Retrieve(int.Parse(invitedVendor))); } try { SubmitPurchasingProposalResponse response = purchasingService.SubmitPurchasingProposal(new SubmitPurchasingProposalRequest(rfp)); } catch (Exception) { throw; } return RedirectToAction("Index"); }
public ActionResult CreateRfp(RequestForProposal rfp) { IPurchasingService purchasingService = new PurchasingServiceClient(); rfp.Status = "active"; string[] invitedVendors = Request.Form["InvitedVendors"].Split(','); foreach (var invitedVendor in invitedVendors) { rfp.InvitedVendors.Add(VendorRepository.Retrieve(int.Parse(invitedVendor))); } try { SubmitPurchasingProposalResponse response = purchasingService.SubmitPurchasingProposal(new SubmitPurchasingProposalRequest(rfp)); } catch (Exception) { throw; } return(RedirectToAction("Index")); }