public IBOProductsAboveAveragePrice BOProductsAboveAveragePrice(IProductsAboveAveragePriceRepository repo) { BOProductsAboveAveragePrice boProductsAboveAveragePrice = (BOProductsAboveAveragePrice)BOProductsAboveAveragePrice(); boProductsAboveAveragePrice.Repository = repo; return(boProductsAboveAveragePrice); }
///<Summary> ///ProductsAboveAveragePriceCollectionCount ///This method returns the collection count of BOProductsAboveAveragePrice objects ///</Summary> ///<returns> ///Int32 ///</returns> ///<parameters> /// ///</parameters> public static Int32 ProductsAboveAveragePriceCollectionCount(IProductsAboveAveragePriceRepository iProductsAboveAveragePriceRepository) { Doing(null); try { Int32 objCount = iProductsAboveAveragePriceRepository.SelectAllCount(); return(objCount); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(-1); } }
///<Summary> ///ProductsAboveAveragePriceCollection ///This method returns the collection of BOProductsAboveAveragePrice objects ///</Summary> ///<returns> ///IList[IBOProductsAboveAveragePrice] ///</returns> ///<parameters> /// ///</parameters> public static IList <IBOProductsAboveAveragePrice> ProductsAboveAveragePriceCollection(IProductsAboveAveragePriceRepository iProductsAboveAveragePriceRepository) { Doing(null); try { IList <IBOProductsAboveAveragePrice> boProductsAboveAveragePriceCollection = new List <IBOProductsAboveAveragePrice>(); IList <IDAOProductsAboveAveragePrice> daoProductsAboveAveragePriceCollection = iProductsAboveAveragePriceRepository.SelectAll(); Done(null); foreach (IDAOProductsAboveAveragePrice daoProductsAboveAveragePrice in daoProductsAboveAveragePriceCollection) { boProductsAboveAveragePriceCollection.Add(new BOProductsAboveAveragePrice(daoProductsAboveAveragePrice)); } return(boProductsAboveAveragePriceCollection); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(null); } }