public static string error(int code, string message) { string rlt = string.Empty; YBDJsonResult YBDjr = new YBDJsonResult(); YBDjr.code = code; YBDjr.message = message; return(YBDConvertToJson.ObjectToJson(YBDjr)); }
public static string success(string message, object o) { string rlt = string.Empty; YBDJsonResult YBDjr = new YBDJsonResult(); YBDjr.code = 200; YBDjr.message = message; if (o != null) { YBDjr.data = o; } return(YBDConvertToJson.ObjectToJson(YBDjr)); }