public ActionResult EditPage(StaticPage page)
        {
            //if (ModelState.IsValid)
            {
                var manager = new AdminManager();
                manager.EditPage(page);

            }
            return RedirectToAction("Index", "Home");
        }
Exemple #2
0
        public void CancEditStaticPage()
        {
            var manager = new AdminManager();
            var toEdit = manager.GetPageByID(manager.GetAllPages().Count);
            toEdit.PageTitle = "Edited Static Page Title";

            manager.EditPage(toEdit);
            var toCheck = manager.GetPageByID(manager.GetAllPages().Count);

            Assert.AreEqual(toEdit.PageTitle, toCheck.PageTitle);
        }