public async Task <IActionResult> GetCoollectionApartment(ApartmentSearchParamsDTO apartmentSearchParams)
        {
            try
            {
                var collectionApartment = await _apartmentService.GetApartmentByParamsAsync(apartmentSearchParams);

                return(Ok(collectionApartment));
            }
            catch (DbUpdateConcurrencyException e)
            {
                return(BadRequest(e.Message));
            }
            catch (Exception e)
            {
                return(BadRequest(e));
            }
        }