コード例 #1
0
 public List <Mestre> Pesquisa(Mestre form, List <Mestre> sql)
 {
     if (form.Ativo)
     {
         sql = sql.Where(a => a.Ativo == form.Ativo).ToList();
     }
     return(Proximo.Pesquisa(form, sql));
 }
コード例 #2
0
 public List <Mestre> Pesquisa(Mestre form, List <Mestre> sql)
 {
     if (!string.IsNullOrEmpty(form.Nome))
     {
         sql = sql.Where(a => a.Nome == form.Nome).ToList();
     }
     return(Proximo.Pesquisa(form, sql));
 }
コード例 #3
0
 public List <Disciplina> Pesquisa(Disciplina form, List <Disciplina> sql)
 {
     if (string.IsNullOrEmpty(form.Bibliografia))
     {
         return(Proximo.Pesquisa(form, sql));
     }
     sql = sql.Where(a => a.Bibliografia == form.Bibliografia).ToList();
     return(Proximo.Pesquisa(form, sql));
 }
コード例 #4
0
 public List <Disciplina> Pesquisa(Disciplina form, List <Disciplina> sql)
 {
     if (string.IsNullOrEmpty(form.DisciplinaId.ToString()) || form.DisciplinaId.ToString() == "00000000-0000-0000-0000-000000000000")
     {
         return(Proximo.Pesquisa(form, sql));
     }
     sql = sql.Where(a => a.DisciplinaId.ToString().Contains(form.DisciplinaId.ToString())).ToList();
     return(Proximo.Pesquisa(form, sql));
 }
コード例 #5
0
 public List <Disciplina> Pesquisa(Disciplina form, List <Disciplina> sql)
 {
     if (string.IsNullOrEmpty(form.Nome))
     {
         return(Proximo.Pesquisa(form, sql));
     }
     sql = sql.Where(c => c.Nome.Contains(form.Nome)).ToList();
     return(Proximo.Pesquisa(form, sql));
 }
コード例 #6
0
 public List <Disciplina> Pesquisa(Disciplina form, List <Disciplina> sql)
 {
     if (string.IsNullOrEmpty(form.AreaId.ToString()))
     {
         return(Proximo.Pesquisa(form, sql));
     }
     sql = sql.Where(a => a.AreaId == form.AreaId).ToList();
     return(Proximo.Pesquisa(form, sql));
 }
コード例 #7
0
 public List <Disciplina> Pesquisa(Disciplina form, List <Disciplina> sql)
 {
     if (string.IsNullOrEmpty(form.Descricao))
     {
         return(Proximo.Pesquisa(form, sql));
     }
     sql = sql.Where(a => a.Descricao == form.Descricao).ToList();
     return(Proximo.Pesquisa(form, sql));
 }