/// <inheritdoc /> public async Task CancelIntent(CancelIntentBody cancelIntentBody) { try { await Cancel(ApplicationContext, cancelIntentBody.Id, cancelIntentBody.EventId, cancelIntentBody.TicketId); } catch (Exception e) { Console.WriteLine(e); throw; } }
public async Task <ActionResult> CancelIntent(CancelIntentBody cancelIntentBody) { try { Logger.LogInformation("Canceling {Id}", cancelIntentBody.Id); await TransactionService.CancelIntent(cancelIntentBody); return(Ok()); } catch (Exception e) { Logger.LogError(e.ToString()); return(BadRequest(e)); } }