public ActionResult Edit(webcontent webcontent) { if (ModelState.IsValid) { db.Entry(webcontent).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(webcontent); }
public ActionResult Create(webcontent webcontent) { if (ModelState.IsValid) { db.webcontent.Add(webcontent); db.SaveChanges(); return RedirectToAction("Index"); } return View(webcontent); }
public ActionResult news(webcontent news) { db.Entry(news).State = EntityState.Modified; db.SaveChanges(); return View(); }
public ActionResult Contactinformation(webcontent contactInformation) { db.Entry(contactInformation).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index", "Admin", new { area = "Admin" }); }