public async Task OnGetAsync(Guid id) { ReunioesGetResult = await reunioesClient.GetAsync(id); if (ReunioesGetResult != null && ReunioesGetResult.PlanoDeAcaoId.HasValue) { PlanosDeAcaoGetResult = await planosDeAcaoClient.GetAsync(ReunioesGetResult.PlanoDeAcaoId.Value); } }
public async Task OnGetAsync(Guid cipaId, Guid reuniaoId, Guid ataId) { var todosMembros = (await cipasClient.GetAsync(cipaId))?.Membros; var reuniao = await reunioesClient.GetAsync(reuniaoId); Membros = todosMembros.Where(m => !reuniao.Ata.Participantes.Any(p => p.ParticipanteNomeCompleto == m.NomeCompleto) && !reuniao.Ata.Ausentes.Any(a => a.AusenteNomeCompleto == m.NomeCompleto)); ReuniaoId = reuniaoId; AtaId = ataId; }
public async Task OnGetAsync(Guid id) { var reunioesGetResult = await reunioesClient.GetAsync(id); ReunioesPut = new ReunioesPut() { MesDeReferencia = reunioesGetResult.MesDeReferencia, DataPrevista = reunioesGetResult.DataPrevista?.Date, HorarioPrevisto = reunioesGetResult.DataPrevista?.ToString("h:mm tt", CultureInfo.InvariantCulture), Local = reunioesGetResult.Local }; ReuniaoId = id; }
public async Task OnGetAsync(Guid reuniaoId, Guid ataId) { var reunioesGetResult = await reunioesClient.GetAsync(reuniaoId); ReunioesAtasPut = new ReunioesAtasPut() { Local = reunioesGetResult.Ata?.Local, Data = reunioesGetResult.Ata?.Inicio?.Date, HorarioInicio = reunioesGetResult.Ata?.Inicio?.ToString("h:mm tt", CultureInfo.InvariantCulture), HorarioFim = reunioesGetResult.Ata?.Termino?.ToString("h:mm tt", CultureInfo.InvariantCulture) }; ReuniaoId = reuniaoId; AtaId = ataId; }
public async Task OnGetAsync(Guid reuniaoId, Guid ataId, Guid assuntoId) { var reunioesGetResult = await reunioesClient.GetAsync(reuniaoId); var assunto = reunioesGetResult?.Ata?.Assuntos?.FirstOrDefault(a => a.AssuntoId == assuntoId); ReunioesAtasAssuntosPut = new ReunioesAtasAssuntosPut() { ClassificacaoDaInformacao = assunto?.ClassificacaoDaInformacao, Tipo = assunto?.Tipo, Descricao = assunto?.Descricao, Keywords = assunto?.Keywords }; ReuniaoId = reuniaoId; AtaId = ataId; AssuntoId = assuntoId; }
public async Task OnGetAsync(Guid reuniaoId) { ReunioesGetResult = await reunioesClient.GetAsync(reuniaoId); ReuniaoId = reuniaoId; }
public async Task OnGetAsync(Guid id) { UserPrincipal = userPrincipalBuilder.UserPrincipal; ReunioesGetResult = await reunioesClient.GetAsync(id); }