public ActionResult Edit(AllergyType allergyTypes)
 {
     if (ModelState.IsValid)
     {
         _db.Entry(allergyTypes).State = EntityState.Modified;
         _db.SaveChanges();
         return RedirectToAction("Index");
     }
     return PartialView("_Edit", allergyTypes);
 }
        public ActionResult Create(AllergyType allergyTypes)
        {
            if (ModelState.IsValid)
            {
                _db.AllergyTypes.Add(allergyTypes);
                _db.SaveChanges();
                return RedirectToAction("Index");
            }

            return PartialView("_Create", allergyTypes);
        }