public async Task <IActionResult> AmountApartmentByLoation(ApartmentSearchParamsDTO apartmentSearchParams) { try { var amountapartments = await _apartmentService.GetAmountApartmentByParamsAsync(apartmentSearchParams); return(Ok(amountapartments)); } catch (DbUpdateConcurrencyException e) { return(BadRequest(e.Message)); } catch (Exception e) { return(BadRequest(e)); } }