public ActionResult DeleteConfirmed(int id)
        {
            Entreprise_AddressType entreprise_AddressType = db.AddressesTypes.Find(id);

            db.AddressesTypes.Remove(entreprise_AddressType);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "AddressTypeID,AddressType,ModifiedDate")] Entreprise_AddressType entreprise_AddressType)
 {
     if (ModelState.IsValid)
     {
         entreprise_AddressType.ModifiedDate    = DateTime.Now;
         db.Entry(entreprise_AddressType).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(entreprise_AddressType));
 }
        // GET: Entreprise_AddressType/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Entreprise_AddressType entreprise_AddressType = db.AddressesTypes.Find(id);

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