public List <AreaAtuacaoModel> AreaAtuacaoAdvogado(int idAdvogado) { return((from AA in db.AreaAtuacao.AsNoTracking() join AAA in db.AdvogadoAreaAtuacao.AsNoTracking() on AA.Id equals AAA.IdAreaAtuacao into AAS from AAA in AAS.Where(w => w.IdAdvogado == idAdvogado).DefaultIfEmpty() orderby AA.Nome where AA.Delete == false select new AreaAtuacaoModel() { Id = AA.Id, Nome = AA.Nome, Selected = AAA != null }).ToList()); }
public static Color getColorByAminoAcidsState(AAS state) => state switch {