public ActionResult DeleteConfirmed(int id)
        {
            Country_office country_office = db.Country_office.Find(id);

            db.Country_office.Remove(country_office);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "countryofficeid,office_id,office_description_english,office_abreviation_english,office_description_french,office_abreviation_french,office_status,office_created_by,office_created_datetime,office_last_modified_by,office_last_modified_datetime,office_deleted_by,office_deleted_datetime,country_code")] Country_office country_office)
 {
     if (ModelState.IsValid)
     {
         db.Entry(country_office).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.country_code = new SelectList(db.countries, "countryid", "country_name", country_office.country_code);
     return(View(country_office));
 }
        // GET: /office/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Country_office country_office = db.Country_office.Find(id);

            if (country_office == null)
            {
                return(HttpNotFound());
            }
            return(View(country_office));
        }
        // GET: /office/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Country_office country_office = db.Country_office.Find(id);

            if (country_office == null)
            {
                return(HttpNotFound());
            }
            ViewBag.country_code = new SelectList(db.countries, "countryid", "country_name", country_office.country_code);
            return(View(country_office));
        }