示例#1
0
        public ActionResult DeleteConfirmed(int id)
        {
            metaFactTest1 metaFactTest1 = db.metaFactTest1.Find(id);

            db.metaFactTest1.Remove(metaFactTest1);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
示例#2
0
 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));
 }
示例#3
0
        // 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));
        }