public async Task <CognitiveServiceKeysDto> GetKeys(int teamId) { var keys = await _service.GetCognitiveServiceKeys(teamId); Assert.NotNull(keys); return(keys); }
public async Task <IActionResult> GetCSKeysForTeam(int teamId) { try { var csKeys = await _service.GetCognitiveServiceKeys(teamId); if (csKeys == null) { return(NotFound()); } return(new ObjectResult(csKeys)); } catch (Exception ex) { Log.Error(ex, ex.Message); return(BadRequest(ex.Message)); } }