public async Task <ActionResult <IEnumerable <Car> > > GetAvaibleCars([FromQuery] DateFromToDTO dateFromTo) { if (!ModelState.IsValid) { return(ValidationProblem(ModelState)); } return(Ok(await _rentService.GetAvailableCars(dateFromTo.PickUpDate, dateFromTo.ReturnDate))); }