File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public static void ConfigureEndpoints(this WebApplication app)
3030 var result = await service . GetLongestDownwardTrend ( fromDate , toDate ) ;
3131 if ( result is null )
3232 {
33- return Results . NotFound ( ) ;
33+ return Results . NoContent ( ) ;
3434 }
3535 return Results . Ok ( new LongestDownwardTrendResponse ( result . Value ) ) ;
3636 }
@@ -49,7 +49,7 @@ public static void ConfigureEndpoints(this WebApplication app)
4949 var result = await service . GetHighestTradingVolume ( fromDate , toDate ) ;
5050 if ( result is null )
5151 {
52- return Results . NotFound ( ) ;
52+ return Results . NoContent ( ) ;
5353 }
5454 return Results . Ok ( new HighestTradingVolumeResponse
5555 (
@@ -72,7 +72,7 @@ public static void ConfigureEndpoints(this WebApplication app)
7272 var result = await service . GetBestBuyAndSellDates ( fromDate , toDate ) ;
7373 if ( result is null )
7474 {
75- return Results . NotFound ( ) ;
75+ return Results . NoContent ( ) ;
7676 }
7777 return Results . Ok ( new BuyAndSellResponse
7878 (
You can’t perform that action at this time.
0 commit comments