public int getEligibleClaimAmount(int policyid, int memberid, int benefitid)//as per user requirement
 {
     if (benefitid == 0)
     {
         policyrepo x = new policyrepo();
         int        y = x.givepolicy(policyid);
         return(2 * y);
     }
     else
     {
         List <int> r = new List <int>();
         r = GetEligibleBenefits(policyid, memberid);
         return(r[benefitid - 1]);
     }
 }
Exemple #2
0
 public int getEligibleClaimAmount(int policyid, int memberid, int benefitid)//as per user requirement
 {
     _log4net.Info("Policy Controller getEligibleClaimAmount action method is called");
     if (benefitid == 0)
     {
         policyrepo x = new policyrepo();
         int        y = x.givepolicy(policyid);
         return(2 * y);
     }
     else
     {
         List <int> r = new List <int>();
         r = GetEligibleBenefits(policyid, memberid);
         return(r[benefitid - 1]);
     }
 }
 // ambulance medical operation staying
 //    1         2        3         4      ----> for user
 //    0         1        2         3      ----> as per my list
 public int getEligibleClaimAmount(int policyid, int memberid, int benefitid)
 {
     try
     {
         _log4net.Info("policyController get eligible claim ammount");
         if (benefitid == 0)
         {
             policyrepo x = new policyrepo();
             int        y = x.givepolicy(policyid);
             return(2 * y);
         }
         else
         {
             List <int> r = new List <int>();
             r = GetEligibleBenefits(policyid, memberid);//[{ 400,300,200,300}]
             return(r[benefitid - 1]);
         }
     }
     catch
     {
         return(0);
     }
 }