示例#1
0
        public static string GetObjectbyId(int ObjectId)
        {
            ObjectService OBS     = new ObjectService();
            var           objects = OBS.GetObjectById(ObjectId);

            if (objects != null)
            {
                string result = JsonConvert.SerializeObject(objects);
                return(result);
            }
            return("");
        }