public async Task <ActionResult <Zone> > Get(int id) { try { Zone zone = await repository.FindZoneAsync(id); return(Ok(zone)); } catch (Exception ex) { logger.LogError(ex.Message); return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message)); } }