Exemplo n.º 1
0
 public List <SituacaoModel> SituacaoAdvogado(int idAdvogado)
 {
     return((from S in db.Situacao.AsNoTracking()
             join AS in db.AdvogadoSituacao.AsNoTracking() on S.Id equals AS.IdSituacao into LAS
             from AS in LAS.Where(w => w.IdAdvogado == idAdvogado).DefaultIfEmpty()
             orderby S.Nome
             where S.Delete == false
             select new SituacaoModel()
     {
         Id = S.Id,
         Nome = S.Nome,
         Selected = AS != null
     }).ToList());
 }
Exemplo n.º 2
0
 public void AttachLAS(LAS las)
 {
     _las = las;
     _las.SetParent(this);
 }