public ActionResult AddComment(Comment comment, int BlogId) { string message = ""; if (InformationService.AddComment(comment, BlogId, out message)) { TempData["Message"] = message; if (TempData.ContainsKey("Message")) { ViewBag.Message = TempData["Message"].ToString(); } return(PartialView("Information/_AddCommentMessage", comment)); } else { return(PartialView("Error")); } }