public ActionResult AddComment(int SubID, string Comment) { var userInfo = (UserLoginModel)Session[Helper.Commons.USER_SEESION_ADMIN]; var newComment = new COMMENT() { Com_Name = Comment, User_ID = userInfo.UserID, Sub_ID = SubID, Created_Date = DateTime.Now, Created_By = userInfo.Username }; var res = dataAccess.AddComment(newComment); return(Json(res, JsonRequestBehavior.AllowGet)); }