public IActionResult AddClaimPolicyRisk(Guid productid, Guid policyid, Guid clientid) { SelectedPolicyRisk viewModel = new SelectedPolicyRisk { ContainerID = Guid.Empty, ProductID = productid, ClientID = clientid, PolicyID = policyid }; return(View(viewModel)); }
public IActionResult AddClaimPolicyRiskConfirmed(SelectedPolicyRisk selectedpolicyrisk) { if (ModelState.IsValid) { return(RedirectToAction("Create", new { containerid = selectedpolicyrisk.ContainerID, policyriskid = selectedpolicyrisk.PolicyRiskID, policyid = selectedpolicyrisk.PolicyID, clientid = selectedpolicyrisk.ClientID, productid = selectedpolicyrisk.ProductID })); } return(View(selectedpolicyrisk)); }