Beispiel #1
0
        public ActionResult DeleteConfirmed(string id)
        {
            RangeIniPost rangeIniPost = db.RangeIniPosts.Find(id);

            db.RangeIniPosts.Remove(rangeIniPost);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "IdRangeIniPost,RangeIni")] RangeIniPost rangeIniPost)
 {
     if (ModelState.IsValid)
     {
         db.Entry(rangeIniPost).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(rangeIniPost));
 }
Beispiel #3
0
        public ActionResult Create([Bind(Include = "IdRangeIniPost,RangeIni")] RangeIniPost rangeIniPost)
        {
            if (ModelState.IsValid)
            {
                db.RangeIniPosts.Add(rangeIniPost);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(rangeIniPost));
        }
Beispiel #4
0
        // GET: RangeIniPosts/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            RangeIniPost rangeIniPost = db.RangeIniPosts.Find(id);

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