Esempio n. 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            GeraPdf geraPdf = db.GeraPdfs.Find(id);

            db.GeraPdfs.Remove(geraPdf);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 public ActionResult Edit([Bind(Include = "GeraPdfId")] GeraPdf geraPdf)
 {
     if (ModelState.IsValid)
     {
         db.Entry(geraPdf).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(geraPdf));
 }
Esempio n. 3
0
        public ActionResult Create([Bind(Include = "GeraPdfId")] GeraPdf geraPdf)
        {
            if (ModelState.IsValid)
            {
                db.GeraPdfs.Add(geraPdf);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(geraPdf));
        }
Esempio n. 4
0
        // GET: GeraPdf/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            GeraPdf geraPdf = db.GeraPdfs.Find(id);

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