Код: Выделить всё
public async Task SetVoucherRedeemedAsync(string vCode, int customerId)
{
try
{
string sql = "INSERT INTO tblVoucherRedeem (FKCustomer, FKDeduction, RedeemDate) "
+ $"SELECT {customerId}, PKDeduction, GETDATE() "
+ $"FROM tblDeduction WHERE VCode = '{vCode}'";
await _dataService.ExecuteQueryAsync(_settings.DBConnectionString!, sql);
return true;
}
catch
{
return false;
}
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... on-attacks
Мобильная версия