public async Task <IActionResult> GetApartmentTypes()
        {
            try
            {
                var types = await _apartmentService.GetApartmentTypesAsync();

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