コード例 #1
0
        /// <summary>
        /// Returns the includeExternal user LinkedData
        /// </summary>
        /// <returns>includeExternal LinkedData</returns>
        public JsonResult GetLinkedDataPredicates( string id)
        {
            //var allPredicates = this._LinkedDataService.GetLinkedDataPredicates(id);
            var allPredicates = this._LinkedDataService.GetLinkedDataDictionary(id);

            var result = new Mvc5RQ.Exceptions.MyJsonResult()
            {
                data = from predicate in allPredicates
                       select new
                       {
                           predicatename = predicate.Key,
                           objectvalue = predicate.Value,
                           included = false
                       },
                isSuccess = true
            };
            return Json(result, JsonRequestBehavior.AllowGet);
        }
コード例 #2
0
        /// <summary>
        /// Returns the includeExternal user LinkedData
        /// </summary>
        /// <returns>includeExternal LinkedData</returns>
        public JsonResult GetLinkedDataPredicates(string id)
        {
            //var allPredicates = this._LinkedDataService.GetLinkedDataPredicates(id);
            var allPredicates = this._LinkedDataService.GetLinkedDataDictionary(id);

            var result = new Mvc5RQ.Exceptions.MyJsonResult()
            {
                data = from predicate in allPredicates
                       select new
                {
                    predicatename = predicate.Key,
                    objectvalue   = predicate.Value,
                    included      = false
                },
                isSuccess = true
            };

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