public List <Problema> RetornaProblemasDisponiveis(int idMed) { List <Problema> TodosOsProblemas = new MProblema().BringAll(); List <Problema> ProblemasCadastrados = RetornaProblemasCadastrados(idMed); TodosOsProblemas.RemoveAll(c => ProblemasCadastrados.Contains(c)); return(TodosOsProblemas); }
public List <Problema> RetornaProblemasDisponiveis(int idMed) { List <Problema> TodosOsProblemas = new MProblema().BringAll(); List <Problema> ProblemasCadastrados = RetornaProblemasCadastrados(idMed); TodosOsProblemas.RemoveAll(c => ProblemasCadastrados.Exists(x => x.idProblema == c.idProblema)); return(TodosOsProblemas); }