Esempio n. 1
0
 public ActionResult Editor()
 {
     var data = new EditorModel()
     {
         Name = _name
     };
     return View(data);
 }
Esempio n. 2
0
        public ActionResult Editor(EditorModel data, bool NewPage = false)
        {
            if (string.IsNullOrWhiteSpace(data.Name))
            {
                // Push back an error
                ModelState.AddModelError("Name", "Name must be specified");
                return View(data);
            }
            else
            {
                _name = data.Name;

                if (NewPage)
                {
                    return RedirectToAction("ShowEditorValues");
                }
                else
                {
                    // Close the page
                    return IntelliTect.Journey.Close(data.Refresh);
                }
            }
        }
Esempio n. 3
0
        public ActionResult ShowEditorValues(bool openPageAfterSubmit = false)
        {
            var data = new EditorModel()
            {
                Name = _name
            };
            ViewBag.OpenPageAfterSubmit = openPageAfterSubmit;

            return View(data);
        }