示例#1
0
        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));
        }
示例#2
0
 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));
 }