public ActionResult Comment(CommentModel CommentModel_)
        {
            CommentModel_.Comments_.User_ID = CookieDetail.UserID;
            var objBLComment = new blComment(CommentModel_.Comments_);

            try
            {
                objBLComment.Create();
            }
            catch (Exception ex)
            {
                Log.Error("Hangout.UI.DebateController.Comment() Error while Create() Comment  Exception:-" + ex.ToString());
            }
            return(RedirectToAction("debateroom", new { debateID = CommentModel_.Comments_.Debate_ID }));
        }
        public JsonResult ajaxComment(int debID, int type, string msg)
        {
            var objENComment = new enComment();

            objENComment.User_ID   = CookieDetail.UserID;
            objENComment.Debate_ID = debID;
            objENComment.Type      = type;
            objENComment.Message   = msg;
            var objBLComment = new blComment(objENComment);

            try
            {
                objBLComment.Create();
            }
            catch (Exception ex)
            {
                Log.Error("Hangout.UI.DebateController.Comment() Error while Create() Comment  Exception:-" + ex.ToString());
                return(Json(null, JsonRequestBehavior.AllowGet));
            }

            objENComment = new enComment()
            {
                User_ID = (int)Session["User_ID"]
            };
            objBLComment = new blComment(objENComment);
            List <enComment> listOfComments = new List <enComment>();

            try
            {
                listOfComments = objBLComment.ReadAll();
            }
            catch (Exception ex)
            {
                Log.Error("Hangout.UI.DebateController.Comment() Error while Read() Comment  Exception:-" + ex.ToString());
                return(Json(null, JsonRequestBehavior.AllowGet));
            }

            listOfComments = listOfComments.FindAll(x => x.Debate_ID == debID && x.Type == type);
            return(Json(listOfComments, JsonRequestBehavior.AllowGet));
        }