Ejemplo n.º 1
0
        public static AccountCollection GetAll()
        {
            AccountCollection obj = new AccountCollection();
            DataSet           ds  = new DAL.Accounts().GetAll();

            obj.MapObjects(ds);
            return(obj);
        }
Ejemplo n.º 2
0
        public static Account GetById(int id)
        {
            Account obj = new Account();
            DataSet ds  = new DAL.Accounts().GetById(id);

            if (obj.MapData(ds) == false)
            {
                obj = null;
            }

            return(obj);
        }
Ejemplo n.º 3
0
        public static Transaction GetById(int id)
        {
            Transaction obj = new Transaction();
            DataSet     ds  = new DAL.Accounts().GetById(id);

            if (obj.MapData(ds) == false)
            {
                obj = null;
            }

            return(obj);
        }