public static List <IdiomaDM> GetAllAdapted() { try { List <IdiomaDM> lista; IdiomaCollectionAdapter adapter = new IdiomaCollectionAdapter(IdiomaFacade.SelectAll()); List <IdiomaDM> collection = new List <IdiomaDM>(); adapter.Fill(collection); lista = collection; return(lista); } catch (ExceptionBLL bllex) { throw new ExceptionBLL(bllex, bllex.Message); } }
public static IdiomaDM GetAdapted(int IdUsuario) { IdiomaDM varDataTable; try { IdiomaAdapter adapter = new IdiomaAdapter(IdiomaFacade.Select(IdUsuario)); IdiomaDM _object = new IdiomaDM(); adapter.Fill(_object); varDataTable = _object; } catch (ExceptionBLL bllex) { throw new ExceptionBLL(bllex, bllex.Message); } return(varDataTable); }