public async Task <ActionResult <List <UXOMapItem> > > GetUXOs() { try { var data = await _uxoService.GetUXOsForDisplay(); return(Ok(data)); } catch (Exception ex) { _logger.LogError($"Get UXOs failed. Message=[{ex.Message}]"); return(StatusCode( (int)HttpStatusCode.InternalServerError, new ErrorResponse() { StatusCode = (int)HttpStatusCode.InternalServerError, Message = "Error retrieving data" } )); } }
public async Task <List <UXOMapItem> > GetUXOs() { return(await _uxoService.GetUXOsForDisplay()); }