public ActionResult DeleteConfirmed(int id)
        {
            PopulationByLanguageSpoken populationByLanguageSpoken = db.PopulationByLanguageSpokens.Find(id);

            db.PopulationByLanguageSpokens.Remove(populationByLanguageSpoken);
            db.SaveChanges();
            return(RedirectToAction("Create"));
        }
 public ActionResult Edit([Bind(Include = "PopLanguageID,LanguageID,NumberHousehold,YearTaken")] PopulationByLanguageSpoken populationByLanguageSpoken)
 {
     if (ModelState.IsValid)
     {
         db.Entry(populationByLanguageSpoken).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Create"));
     }
     return(View(populationByLanguageSpoken));
 }
        public ActionResult Create([Bind(Prefix = "Item1", Include = "PopLanguageID,LanguageID,NumberHousehold,YearTaken")] PopulationByLanguageSpoken populationByLanguageSpoken)
        {
            if (ModelState.IsValid)
            {
                db.PopulationByLanguageSpokens.Add(populationByLanguageSpoken);
                db.SaveChanges();
                return(RedirectToAction("Create"));
            }

            return(View(populationByLanguageSpoken));
        }
        // GET: PopulationByLanguageSpoken/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PopulationByLanguageSpoken populationByLanguageSpoken = db.PopulationByLanguageSpokens.Find(id);

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