public ActionResult Edit(FrontPage frontpage) { if (ModelState.IsValid) { db.Entry(frontpage).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(frontpage); }
// // GET: /FrontPage/ public ActionResult Index() { FrontPage fp = new FrontPage(); fp = db.FrontPage.Find(1); return View(fp); }