public IBOAlphabeticalListOfProducts BOAlphabeticalListOfProducts(IAlphabeticalListOfProductsRepository repo)
        {
            BOAlphabeticalListOfProducts boAlphabeticalListOfProducts = (BOAlphabeticalListOfProducts)BOAlphabeticalListOfProducts();

            boAlphabeticalListOfProducts.Repository = repo;
            return(boAlphabeticalListOfProducts);
        }
Example #2
0
 ///<Summary>
 ///AlphabeticalListOfProductsCollectionCount
 ///This method returns the collection count of BOAlphabeticalListOfProducts objects
 ///</Summary>
 ///<returns>
 ///Int32
 ///</returns>
 ///<parameters>
 ///
 ///</parameters>
 public static Int32 AlphabeticalListOfProductsCollectionCount(IAlphabeticalListOfProductsRepository iAlphabeticalListOfProductsRepository)
 {
     Doing(null);
     try
     {
         Int32 objCount = iAlphabeticalListOfProductsRepository.SelectAllCount();
         return(objCount);
     }
     catch (Exception ex)
     {
         Failed(null, ex);
         Handle(null, ex);
         return(-1);
     }
 }
Example #3
0
        ///<Summary>
        ///AlphabeticalListOfProductsCollection
        ///This method returns the collection of BOAlphabeticalListOfProducts objects
        ///</Summary>
        ///<returns>
        ///IList[IBOAlphabeticalListOfProducts]
        ///</returns>
        ///<parameters>
        ///
        ///</parameters>
        public static IList <IBOAlphabeticalListOfProducts> AlphabeticalListOfProductsCollection(IAlphabeticalListOfProductsRepository iAlphabeticalListOfProductsRepository)
        {
            Doing(null);
            try
            {
                IList <IBOAlphabeticalListOfProducts>  boAlphabeticalListOfProductsCollection  = new List <IBOAlphabeticalListOfProducts>();
                IList <IDAOAlphabeticalListOfProducts> daoAlphabeticalListOfProductsCollection = iAlphabeticalListOfProductsRepository.SelectAll();
                Done(null);

                foreach (IDAOAlphabeticalListOfProducts daoAlphabeticalListOfProducts in daoAlphabeticalListOfProductsCollection)
                {
                    boAlphabeticalListOfProductsCollection.Add(new BOAlphabeticalListOfProducts(daoAlphabeticalListOfProducts));
                }

                return(boAlphabeticalListOfProductsCollection);
            }
            catch (Exception ex)
            {
                Failed(null, ex);
                Handle(null, ex);
                return(null);
            }
        }