public ActionResult DeleteConfirmed(int id) { metaFactTest1 metaFactTest1 = db.metaFactTest1.Find(id); db.metaFactTest1.Remove(metaFactTest1); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "UID,id,filter,fileName,fileRoot,RootReference,securityClass,businessClass,filePath,extension,mimeType,MD5,emailID,emailNew")] metaFactTest1 metaFactTest1) { if (ModelState.IsValid) { db.Entry(metaFactTest1).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(metaFactTest1)); }
// GET: metaFactTest1/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } metaFactTest1 metaFactTest1 = db.metaFactTest1.Find(id); if (metaFactTest1 == null) { return(HttpNotFound()); } return(View(metaFactTest1)); }