public ActionResult Edit([Bind(Include = "footsize,models,price,rating")] Table_4 table_4) { if (ModelState.IsValid) { db.Entry(table_4).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(table_4)); }
public ActionResult Create([Bind(Include = "footsize,models,price,rating")] Table_4 table_4) { if (ModelState.IsValid) { db.Table_4.Add(table_4); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(table_4)); }
// GET: Table_4/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Table_4 table_4 = db.Table_4.Find(id); if (table_4 == null) { return(HttpNotFound()); } return(View(table_4)); }