Exemplo n.º 1
0
        public ActionResult CreateBlog(Blog blog)
        {
            string message = "";

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