public ActionResult Delete(int Id)
        {
            ViewBag.Title = "Delete";
            FillDropdowns();
            InsuranceProduct objProd = new InsuranceProductRepository().GetInsuranceProduct(Id);

            objProd.ProductParameters = new InsuranceProductRepository().GetProductionParameter(Id);
            return(View("Create", objProd));
        }
        public ActionResult Delete(InsuranceProduct model)
        {
            Result res = new InsuranceProductRepository().Delete(model);

            if (res.Value)
            {
                TempData["Success"] = "Deleted Successfully!";
            }
            else
            {
            }
            return(RedirectToAction("Index"));
        }
        public ActionResult Edit(InsuranceProduct model)
        {
            if (!ModelState.IsValid)
            {
                var allErrors = ModelState.Values.SelectMany(v => v.Errors);
                return(View(model));
            }
            Result res = new InsuranceProductRepository().Update(model);


            if (res.Value)
            {
                TempData["Success"] = "Updated Successfully!";
            }
            else
            {
            }
            return(RedirectToAction("Index"));
        }
        public ActionResult Create(InsuranceProduct model)
        {
            //FillDropdowns();
            if (!ModelState.IsValid)
            {
                var allErrors = ModelState.Values.SelectMany(v => v.Errors);
                return(View(model));
            }
            Result res = new InsuranceProductRepository().Insert(model);

            if (res.Value)
            {
                TempData["Success"] = "Saved Successfully!";
            }
            else
            {
            }
            return(RedirectToAction("Index"));
        }