public ActionResult Create(BeneficiaryClass beneficiaryclass)
        {
            if (ModelState.IsValid)
            {
                db.BeneficiaryClasses.Add(beneficiaryclass);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(beneficiaryclass);
        }
 public ActionResult Edit(BeneficiaryClass beneficiaryclass)
 {
     if (ModelState.IsValid)
     {
         db.Entry(beneficiaryclass).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(beneficiaryclass);
 }