コード例 #1
0
ファイル: TrilhaNivel.cs プロジェクト: lincoln-alves/sgus
 public virtual IQueryable <ItemTrilha> ObterItensTrilha()
 {
     return(ListaPontoSebrae.SelectMany(x => x.ListaMissoes).Distinct().AsQueryable().SelectMany(x => x.ListaItemTrilha).Distinct());
 }
コード例 #2
0
ファイル: TrilhaNivel.cs プロジェクト: lincoln-alves/sgus
 public virtual IQueryable <Missao> ObterMissoes()
 {
     return(ListaPontoSebrae.SelectMany(x => x.ListaMissoes).Distinct().AsQueryable());
 }
コード例 #3
0
ファイル: TrilhaNivel.cs プロジェクト: lincoln-alves/sgus
 public virtual IEnumerable <PontoSebrae> ObterPontosSebraeAtivos()
 {
     return(ListaPontoSebrae.Where(x => x.Ativo));
 }
コード例 #4
0
ファイル: TrilhaNivel.cs プロジェクト: lincoln-alves/sgus
        public virtual dynamic ObterLideres(UsuarioTrilha matricula, string enderecoSgus)
        {
            var matriculaLideres = ListaPontoSebrae.Select(x => x.ObterLiderDetalhado(enderecoSgus));

            return(matriculaLideres.Where(x => x.Id == matricula.Usuario.ID).ToList());
        }