Example #1
0
        public async Task <IActionResult> RunApprovedAsync(
            [HttpTrigger(AuthorizationLevel.Function, "put", Route = "Diagnosis/{submissionNumber}/Approved/{userUuid}")] HttpRequest req,
            string submissionNumber,
            string userUuid
            )
        {
            Logger.LogInformation($"{nameof(DiagnosisApi)} {nameof(RunApprovedAsync)} processed a request.");

            var result = await Diagnosis.GetAsync(submissionNumber, userUuid);

            foreach (var key in result.Keys)
            {
                await Tek.UpsertAsync(key);
            }

            return(new OkResult());
        }