Example #1
0
        public ActionResult GetComments(int groupId)
        {
            var token = GetUserToken();

            if (string.IsNullOrEmpty(token))
            {
                return(Json(new { status = "UnAuthorized" }, JsonRequestBehavior.AllowGet));
            }
            var res = _routeManager.GetComments(token, groupId);

            return(Json(res, JsonRequestBehavior.AllowGet));
        }