public async Task <IActionResult> OnPostAsync() { foreach (var username in Usernames) { var user = await usersClient.GetAsync(username); if (!string.IsNullOrWhiteSpace(user?.FullName) && !string.IsNullOrWhiteSpace(user.Email)) { await reunioesClient.AtasParticipantesPostAsync(ReuniaoId, AtaId, new ReunioesAtasParticipantesPost() { NomeCompleto = user.FullName, Email = user.Email }); } } return(new JsonResult( new { returnUrl = Url.Page("/Reunioes/Detalhar", new { id = ReuniaoId }) })); }