public async Task <IActionResult> GetValues() { try { var values = await _valueService.GetAllAsync(); return(Ok(values)); } catch (Exception ex) { _logger.LogError(ex.Message); return(StatusCode(500)); } }
public async Task <IActionResult> GetValues() { return(Ok(await _service.GetAllAsync())); }