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]); } }
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]); } }
public List <List <int> > getchainofproviders(int policyid)//as per user requirement { _log4net.Info("Policy Controller getchainofproviders action method is called"); //at first need to call policy repo to get list of all policies and then for a particular policy get list of hospitals List <List <int> > hosploca = new List <List <int> >(); policyrepo ob1 = new policyrepo(); List <policy> p = new List <policy>(); p = ob1.giveall(); List <int> ml = new List <int>(); foreach (var item in p) { if (item.policyid == policyid) { int x = item.hospitalid; ml.Add(x); } } providerpolicyrepo res1 = new providerpolicyrepo(); List <providerpolicy> pq = new List <providerpolicy>(); pq = res1.giveall1(); foreach (var item in ml) { foreach (var item1 in pq) { if (item == item1.hospitalid) { List <int> op = new List <int>(); op.Add(item);//op.add(item1.hospitalid); op.Add(item1.locationid); hosploca.Add(op); } } } return(hosploca); }
// 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); } }