Beispiel #1
0
 public ActionResult Edit(webcontent webcontent)
 {
     if (ModelState.IsValid)
     {
         db.Entry(webcontent).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(webcontent);
 }
Beispiel #2
0
        public ActionResult Create(webcontent webcontent)
        {
            if (ModelState.IsValid)
            {
                db.webcontent.Add(webcontent);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(webcontent);
        }
Beispiel #3
0
 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" });
 }