Beispiel #1
0
        //Get : AddPackageBenefit
        public ActionResult AddPackageBenefits(int?packID)
        {
            if (packID == null)
            {
                return(HttpNotFound());
            }
            var pb  = new PackageBusiness();
            var pbv = new Template.Model.ViewModels.PackageBenefitView();

            pbv.benefit               = new List <Template.Model.ViewModels.BenefitView>();
            pbv.benefit               = pb.GetAllBenefits();
            Session["packID"]         = packID;
            Session["Name"]           = pb.GetById((int)packID).Name;
            Session["PremiumAmount"]  = pb.GetById((int)packID).PremiumAmount;
            Session["maxBeneficiary"] = pb.GetById((int)packID).maxBeneficiary;

            List <BenefitView> benefit = new List <BenefitView>();

            benefit = pb.GetAllBenefits();
            return(View(benefit));
        }
Beispiel #2
0
 //Get : Benefits
 public ActionResult OfferedBenefits()
 {
     return(View(prepo.GetAllBenefits()));
 }