public ActionResult DeleteConfirmed(string id)
        {
            RangeFinPost rangeFinPost = db.RangeFinPosts.Find(id);

            db.RangeFinPosts.Remove(rangeFinPost);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "IdRangeFinPost,RangeFin")] RangeFinPost rangeFinPost)
 {
     if (ModelState.IsValid)
     {
         db.Entry(rangeFinPost).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(rangeFinPost));
 }
        public ActionResult Create([Bind(Include = "IdRangeFinPost,RangeFin")] RangeFinPost rangeFinPost)
        {
            if (ModelState.IsValid)
            {
                db.RangeFinPosts.Add(rangeFinPost);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(rangeFinPost));
        }
        // GET: RangeFinPosts/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            RangeFinPost rangeFinPost = db.RangeFinPosts.Find(id);

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