public ActionResult AddPackage(PackageView model) { if (ModelState.IsValid) { prepo.AddPackage(model); var pb = new PackageBusiness(); return(RedirectToAction("AddPackageBenefits", new { packID = pb.GetByName(model.Name).PackageId })); } return(View(model)); }