public ActionResult DeleteConfirmed(int id) { LESSION_TAG lESSION_TAG = db.LESSION_TAG.Find(id); db.LESSION_TAG.Remove(lESSION_TAG); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "PK_SEQ,LESSON_FK,TAG_FK")] LESSION_TAG lESSION_TAG) { if (ModelState.IsValid) { db.Entry(lESSION_TAG).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(lESSION_TAG)); }
public ActionResult Create([Bind(Include = "PK_SEQ,LESSON_FK,TAG_FK")] LESSION_TAG lESSION_TAG) { if (ModelState.IsValid) { db.LESSION_TAG.Add(lESSION_TAG); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(lESSION_TAG)); }
// GET: LESSION_TAG/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } LESSION_TAG lESSION_TAG = db.LESSION_TAG.Find(id); if (lESSION_TAG == null) { return(HttpNotFound()); } return(View(lESSION_TAG)); }