示例#1
0
 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);
     }
 }
示例#2
0
        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);
        }