Kurcze wiecie może dlaczego gdy próbuje coś usunąć wyskakuje mi bład 405 dlaczego ?
[HttpDelete]
[Route("Delete/{id}")]
public IActionResult Delete(Guid id)
{
if (productService.GetProduct(id) == null)
return NotFound();
else
{
productService.DeleteProduct(id);
return NoContent();
}
}