public async Task <ActionResult <PropertyType> > GetByIdAsync(int id) { try { var result = await _propertyHandler.GetByIdAsync(id); if (result == null) { return(NotFound()); } return(Ok(result)); } catch (Exception ex) { return(StatusCode(500, ex)); } }