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