public IActionResult Get() { try { return(Ok(_mapper.Map <IEnumerable <Runner>, IEnumerable <RunnerViewModel> >(_repository.GetAllRunners()))); } catch (Exception ex) { _logger.LogError($"Failed to get runners: {ex}"); return(BadRequest("Failed to get runners")); } }