Exemplo n.º 1
0
 public ActionResult delete(string id)
 {
     using (MDB db = new MDB())
     {
         db.Delete <Models.DbPipeline>(x => x.Id == id);
         return(RedirectToAction("index"));
     }
 }
 public ActionResult delete(string id)
 {
     using (MDB mdb = new MDB())
     {
         var result = mdb.Delete <Models.DbAttachment>(x => x.Id == id && x.State != 2);
         return(RedirectToAction("index"));
     }
 }
Exemplo n.º 3
0
        public ActionResult delete(string id)
        {
            using (MDB db = new MDB())
            {
                db.Delete <DbTask>(x => x.Id == id);
            }

            return(RedirectToAction("index"));
        }