This commit is contained in:
Alex Hyett 2023-09-20 12:16:02 +01:00
parent 0b1e85ecb7
commit eb2ef5f2d8
2 changed files with 1 additions and 7 deletions

View file

@ -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)

View file

@ -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
{