public async Task <IActionResult> Get() { //var token = Request.Headers[HeaderNames.Authorization]; //if (string.IsNullOrEmpty(token)) return NotFound(); return(Ok(await serviceProblem.GetProblems("mocked_token"))); }
public async Task PostOnFlux() { var list = await serviceProblem.GetProblems("mocked_token"); foreach (var problem in list) { try { await PostProblem(problem); } catch (Exception ex) { logger.LogError("Error on post on flux", ex); } } }