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