public ActionResult Create(TypeOfBeneficiary typeofbeneficiary)
        {
            if (ModelState.IsValid)
            {
                db.TypeOfBeneficiaries.Add(typeofbeneficiary);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

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