Exemple #1
0
        public ActionResult Delete(WikiDeleteModel model)
        {
            if (ModelState.IsValid)
            {
                var db = new DataAccess();
                try
                {
                    db.DeletePage(model.Guid);
                    return View("List");
                }
                catch (Exception ex)
                {
                    ViewBag.Error = ex.Message;

                    return View("Error");
                }
            }

            return View(model);
        }