コード例 #1
0
        public string AppInfo()
        {
            var appInfo = Core.AppInfo.GetAppInfo();

            return(JsonFileManager.GetContentJsonFromObject(appInfo));
        }
コード例 #2
0
 public string Show(string name)
 {
     return(JsonFileManager.GetContentJsonFromObject(AppInfo.GetAppInfo().GetConfiguration(name)));
 }
コード例 #3
0
 /// <summary>
 /// View model as Json
 /// </summary>
 /// <param name="model">Model instance</param>
 /// <param name="config">JsonSerializerSettings instance</param>
 /// <returns>Object to JSON string</returns>
 public virtual string ViewJson(object model, JsonSerializerSettings config = null)
 {
     return(JsonFileManager.GetContentJsonFromObject(model, config));
 }