public async Task <IActionResult> GetPropertyTypes()
        {
            try
            {
                var propertyTypes = await _nomenclatureService.GetAllPropertyTypesAsync();

                return(Ok(propertyTypes));
            }
            catch (Exception ex)
            {
                return(BadRequest("Error getting property types: " + ex.Message + "/" + ex.InnerException?.Message));
            }
        }