public ActionResult UpdateParent(Food food) { food.ParentId = 0; food.Consist = ""; _context.Entry(food).State = EntityState.Modified; _context.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Update(Comfort comfort) { _context.Entry(comfort).State = EntityState.Modified; _context.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Update(News news) { _context.Entry(news).State = EntityState.Modified; _context.SaveChanges(); return(RedirectToAction("Index")); }