From 612bb3d0b18c33eb2847670a15ad4240a954715d Mon Sep 17 00:00:00 2001 From: Thomas Andersen Date: Thu, 2 Nov 2023 19:12:48 +0100 Subject: [PATCH] Fixed the responsetype of getProducts --- .../CoffeeCard.WebApi/Controllers/v2/ProductsController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/coffeecard/CoffeeCard.WebApi/Controllers/v2/ProductsController.cs b/coffeecard/CoffeeCard.WebApi/Controllers/v2/ProductsController.cs index c791a097..36bed38f 100644 --- a/coffeecard/CoffeeCard.WebApi/Controllers/v2/ProductsController.cs +++ b/coffeecard/CoffeeCard.WebApi/Controllers/v2/ProductsController.cs @@ -72,8 +72,8 @@ public async Task UpdateProduct(UpdateProductRequest product) /// Successful request [HttpGet] [AllowAnonymous] - [ProducesResponseType(typeof(IEnumerable), StatusCodes.Status200OK)] - public async Task>> GetProducts() + [ProducesResponseType(typeof(IEnumerable), StatusCodes.Status200OK)] + public async Task>> GetProducts() { IEnumerable products; try @@ -105,4 +105,4 @@ private static ProductResponse MapProductToDto(Product product) }; } } -} \ No newline at end of file +}