public IBOCategorySalesFor1997 BOCategorySalesFor1997(ICategorySalesFor1997Repository repo) { BOCategorySalesFor1997 boCategorySalesFor1997 = (BOCategorySalesFor1997)BOCategorySalesFor1997(); boCategorySalesFor1997.Repository = repo; return(boCategorySalesFor1997); }
///<Summary> ///CategorySalesFor1997CollectionCount ///This method returns the collection count of BOCategorySalesFor1997 objects ///</Summary> ///<returns> ///Int32 ///</returns> ///<parameters> /// ///</parameters> public static Int32 CategorySalesFor1997CollectionCount(ICategorySalesFor1997Repository iCategorySalesFor1997Repository) { Doing(null); try { Int32 objCount = iCategorySalesFor1997Repository.SelectAllCount(); return(objCount); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(-1); } }
///<Summary> ///CategorySalesFor1997Collection ///This method returns the collection of BOCategorySalesFor1997 objects ///</Summary> ///<returns> ///IList[IBOCategorySalesFor1997] ///</returns> ///<parameters> /// ///</parameters> public static IList <IBOCategorySalesFor1997> CategorySalesFor1997Collection(ICategorySalesFor1997Repository iCategorySalesFor1997Repository) { Doing(null); try { IList <IBOCategorySalesFor1997> boCategorySalesFor1997Collection = new List <IBOCategorySalesFor1997>(); IList <IDAOCategorySalesFor1997> daoCategorySalesFor1997Collection = iCategorySalesFor1997Repository.SelectAll(); Done(null); foreach (IDAOCategorySalesFor1997 daoCategorySalesFor1997 in daoCategorySalesFor1997Collection) { boCategorySalesFor1997Collection.Add(new BOCategorySalesFor1997(daoCategorySalesFor1997)); } return(boCategorySalesFor1997Collection); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(null); } }