public ActionResult Create(PGLanguage pglanguage) { if (ModelState.IsValid) { db.PGLanguages.Add(pglanguage); db.SaveChanges(); return RedirectToAction("Index"); } return View(pglanguage); }
public ActionResult Edit(PGLanguage pglanguage) { if (ModelState.IsValid) { db.Entry(pglanguage).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(pglanguage); }