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 })); } }
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 })); } }