public static List <Patente> GetAllAdapted() { List <Patente> varDataTable; try { PatenteCollectionAdapter adapter = new PatenteCollectionAdapter(PatenteFacade.SelectAll()); List <Patente> collection = new List <Patente>(); adapter.Fill(collection); varDataTable = collection; } catch (ExceptionDAL dalex) { throw new ExceptionBLL(dalex, dalex.Message); } return(varDataTable); }