public IBOProductSalesFor1997 BOProductSalesFor1997(IProductSalesFor1997Repository repo) { BOProductSalesFor1997 boProductSalesFor1997 = (BOProductSalesFor1997)BOProductSalesFor1997(); boProductSalesFor1997.Repository = repo; return(boProductSalesFor1997); }
///<Summary> ///ProductSalesFor1997CollectionCount ///This method returns the collection count of BOProductSalesFor1997 objects ///</Summary> ///<returns> ///Int32 ///</returns> ///<parameters> /// ///</parameters> public static Int32 ProductSalesFor1997CollectionCount(IProductSalesFor1997Repository iProductSalesFor1997Repository) { Doing(null); try { Int32 objCount = iProductSalesFor1997Repository.SelectAllCount(); return(objCount); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(-1); } }
///<Summary> ///ProductSalesFor1997Collection ///This method returns the collection of BOProductSalesFor1997 objects ///</Summary> ///<returns> ///IList[IBOProductSalesFor1997] ///</returns> ///<parameters> /// ///</parameters> public static IList <IBOProductSalesFor1997> ProductSalesFor1997Collection(IProductSalesFor1997Repository iProductSalesFor1997Repository) { Doing(null); try { IList <IBOProductSalesFor1997> boProductSalesFor1997Collection = new List <IBOProductSalesFor1997>(); IList <IDAOProductSalesFor1997> daoProductSalesFor1997Collection = iProductSalesFor1997Repository.SelectAll(); Done(null); foreach (IDAOProductSalesFor1997 daoProductSalesFor1997 in daoProductSalesFor1997Collection) { boProductSalesFor1997Collection.Add(new BOProductSalesFor1997(daoProductSalesFor1997)); } return(boProductSalesFor1997Collection); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(null); } }