From 4ad3cf6964ea52302a443ffd71cc6e1237b09fa8 Mon Sep 17 00:00:00 2001 From: Fernir Team Date: Sat, 4 May 2024 18:15:23 +0300 Subject: [PATCH] fix --- .../Controllers/v1/AdvertsController.cs | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/server/Booking.Api/Controllers/v1/AdvertsController.cs b/server/Booking.Api/Controllers/v1/AdvertsController.cs index 6488da1..f154a97 100644 --- a/server/Booking.Api/Controllers/v1/AdvertsController.cs +++ b/server/Booking.Api/Controllers/v1/AdvertsController.cs @@ -57,14 +57,14 @@ public async Task GetAll( [FromQuery] int? maxCost = null, [FromQuery] int? singleBeds = null, [FromQuery] int? doubleBeds = null, - [FromQuery] bool? wifi = null, - [FromQuery] bool? pets = null, - [FromQuery] bool? tv = null, - [FromQuery] bool? refrigerator = null, - [FromQuery] bool? kitchen = null, - [FromQuery] bool? washer = null, - [FromQuery] bool? heating = null, - [FromQuery] bool? dryer = null + [FromQuery] bool? Wifi = null, + [FromQuery] bool? PetsAllowed = null, + [FromQuery] bool? TV = null, + [FromQuery] bool? Refrigerator = null, + [FromQuery] bool? Kitchen = null, + [FromQuery] bool? Washer = null, + [FromQuery] bool? Heating = null, + [FromQuery] bool? Dryer = null ) { return Ok(await mediator.Send(new AdvertsQueries.GetAll.Request( @@ -79,14 +79,14 @@ public async Task GetAll( maxCost, singleBeds, doubleBeds, - wifi, - pets, - tv, - refrigerator, - kitchen, - washer, - heating, - dryer + Wifi, + PetsAllowed, + TV, + Refrigerator, + Kitchen, + Washer, + Heating, + Dryer ))); }