public ActionResult Update(Flavor update_Flavor, int TreatId)
 {
     if (TreatId != 0)
     {
         _dataBase.TreatFlavors.Add(new TreatFlavor()
         {
             TreatId = TreatId, FlavorId = update_Flavor.FlavorId
         });
     }
     _dataBase.Entry(update_Flavor).State = EntityState.Modified;
     _dataBase.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult Update(Treat new_treat)
 {
     _dataBase.Entry(new_treat).State = EntityState.Modified;
     _dataBase.SaveChanges();
     return(RedirectToAction("Index"));
 }