Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            QRCodeString_tbl qRCodeString_tbl = db.QRCodeString_tbl.Find(id);

            db.QRCodeString_tbl.Remove(qRCodeString_tbl);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "Id,Date,QRCodeImage,QRCodeString")] QRCodeString_tbl qRCodeString_tbl)
 {
     if (ModelState.IsValid)
     {
         db.Entry(qRCodeString_tbl).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(qRCodeString_tbl));
 }
Ejemplo n.º 3
0
        public ActionResult Create([Bind(Include = "Id,Date,QRCodeImage,QRCodeString")] QRCodeString_tbl qRCodeString_tbl)
        {
            if (ModelState.IsValid)
            {
                db.QRCodeString_tbl.Add(qRCodeString_tbl);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(qRCodeString_tbl));
        }
Ejemplo n.º 4
0
        // GET: QRCodeString_tbl/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            QRCodeString_tbl qRCodeString_tbl = db.QRCodeString_tbl.Find(id);

            if (qRCodeString_tbl == null)
            {
                return(HttpNotFound());
            }
            return(View(qRCodeString_tbl));
        }