public ActionResult Comment(string commentContent, int postId, int groupId) { if (Session["UserName"] == null) { return(RedirectToAction("Error")); } int userId = Int32.Parse(Session["UserId"].ToString()); KoombuBll kBll = new KoombuBll(); kBll.CommentPost(commentContent, postId, userId); if (groupId != 0) { return(RedirectToAction("GroupWall", "Group", new { groupId = groupId })); } return(RedirectToAction("Home", "Home")); }