public byte[] Get() { return(QRCode.CreateCodeSimpleByte("dd")); /*String result = "result"; * Apliu.Standard.Tools.Logger.WriteLogWeb("11111"); * Apliu.Standard.Tools.Logger.WriteLogWeb("22222"); * return result; * Apliu.Core.Database.DatabaseType databaseType = (Apliu.Core.Database.DatabaseType)Enum.Parse(typeof(Apliu.Core.Database.DatabaseType), AppsettingJson.GetuUserDefinedSetting("DatabaseType")); * UserConnectionString userConnectionString = AppsettingJson.GetSetting<UserConnectionString>("ConnectionString", "userdefined.json"); * String databaseConnection = String.Empty; * switch (databaseType) * { * case Apliu.Core.Database.DatabaseType.SqlServer: * databaseConnection = userConnectionString.SqlServer; * break; * case Apliu.Core.Database.DatabaseType.Oracle: * databaseConnection = userConnectionString.Oracle; * break; * case Apliu.Core.Database.DatabaseType.MySql: * databaseConnection = userConnectionString.MySql; * break; * case Apliu.Core.Database.DatabaseType.OleDb: * databaseConnection = userConnectionString.OleDb; * break; * default: * break; * } * * Apliu.Core.Database.DatabaseHelper databaseHelper = * new Apliu.Core.Database.DatabaseHelper(databaseType, databaseConnection); * * string sql01 = "insert into test (ID,NAME) values('" + Guid.NewGuid().ToString().ToLower() + "','" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "');"; * int p1 = databaseHelper.PostData(sql01); * * DataSet ds = databaseHelper.GetData("select * from test "); * if (ds != null && ds.Tables.Count > 0) * { * JsonSerializerSettings setting = new JsonSerializerSettings() * { * ReferenceLoopHandling = ReferenceLoopHandling.Ignore * }; * result = JsonConvert.SerializeObject(ds.Tables[0], setting); * } * * return result;*/ }