public ActionResult EditCategory(web_vangia_category model) { db.Entry(model).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("IndexCategory")); }
public ActionResult CreateCategory(web_vangia_category model) { db.web_vangia_category.Add(model); db.SaveChanges(); return(RedirectToAction("IndexCategory")); }