From eb2ef5f2d8b2cbb2cafc49552739cf9b83ffc7fd Mon Sep 17 00:00:00 2001 From: Alex Hyett Date: Wed, 20 Sep 2023 12:16:02 +0100 Subject: [PATCH] Clean up --- Controllers/PaymentController.cs | 2 +- Program.cs | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Controllers/PaymentController.cs b/Controllers/PaymentController.cs index 48f3b8a..eac4284 100644 --- a/Controllers/PaymentController.cs +++ b/Controllers/PaymentController.cs @@ -12,7 +12,6 @@ namespace Idempotency.Controllers [Route("[controller]")] [Consumes("application/json")] [Produces("application/json")] - [Idempotent] public class PaymentController : ControllerBase { @@ -35,6 +34,7 @@ namespace Idempotency.Controllers } [HttpPost] + [Idempotent] public IActionResult Post([FromBody] PaymentRequest request) { if (request is null) diff --git a/Program.cs b/Program.cs index f61cdc9..71be22c 100644 --- a/Program.cs +++ b/Program.cs @@ -1,11 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; namespace Idempotency {