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 {