Example #1
0
        public ActionResult EditBlog(Blog blog)
        {
            string message = "";

            if (InformationService.EditBlog(blog, out message))
            {
                return(RedirectToAction("BlogsList"));
            }
            else
            {
                return(RedirectToAction("EditBlog", new { blog = blog, message = message }));
            }
        }