Open BradKnowles opened 3 years ago
I didn't attempt a PR on this one as I don't know how you'd like to solve it. Do you want DiscardPayment
and TimeoutPayment
to be part of the route? Or are you looking for a more elegant solution where ASP.NET figures out which action to execute based on the request body?
When attempting to execute action
DiscardPayment
, this error message is returned:Both actions are decorated with the same
[HttpDelete("{id}")]
attribute and ASP.NET doesn't know which to choose.https://github.com/oskardudycz/EventSourcing.NetCore/blob/ac8457070b96aeb5e08e10fb2567d7e726dd5a20/Sample/ECommerce/Payments/Payments.Api/Controllers/PaymentsController.cs#L64-L92