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); }
public static Patente GetAdapted(string IdFamiliaElement) { Patente varDataTable; try { PatenteAdapter adapter = new PatenteAdapter(PatenteFacade.Select(IdFamiliaElement)); Patente _object = new Patente(); adapter.Fill(_object); varDataTable = _object; } catch (ExceptionDAL dalex) { throw new ExceptionBLL(dalex, dalex.Message); } return(varDataTable); }