public ActionResult DeleteConfirmed(int id)
        {
            Type_tarif type_tarif = db.Type_tarif.Find(id);

            db.Type_tarif.Remove(type_tarif);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "id_Ttarif,libelle_Ttarif,prixJour_Ttarif")] Type_tarif type_tarif)
 {
     if (ModelState.IsValid)
     {
         db.Entry(type_tarif).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(type_tarif));
 }
        public ActionResult Create([Bind(Include = "id_Ttarif,libelle_Ttarif,prixJour_Ttarif")] Type_tarif type_tarif)
        {
            if (ModelState.IsValid)
            {
                db.Type_tarif.Add(type_tarif);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(type_tarif));
        }
        // GET: Type_tarif/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Type_tarif type_tarif = db.Type_tarif.Find(id);

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