public IBOOrderSubtotals BOOrderSubtotals(IOrderSubtotalsRepository repo) { BOOrderSubtotals boOrderSubtotals = (BOOrderSubtotals)BOOrderSubtotals(); boOrderSubtotals.Repository = repo; return(boOrderSubtotals); }
///<Summary> ///OrderSubtotalsCollectionCount ///This method returns the collection count of BOOrderSubtotals objects ///</Summary> ///<returns> ///Int32 ///</returns> ///<parameters> /// ///</parameters> public static Int32 OrderSubtotalsCollectionCount(IOrderSubtotalsRepository iOrderSubtotalsRepository) { Doing(null); try { Int32 objCount = iOrderSubtotalsRepository.SelectAllCount(); return(objCount); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(-1); } }
///<Summary> ///OrderSubtotalsCollection ///This method returns the collection of BOOrderSubtotals objects ///</Summary> ///<returns> ///IList[IBOOrderSubtotals] ///</returns> ///<parameters> /// ///</parameters> public static IList <IBOOrderSubtotals> OrderSubtotalsCollection(IOrderSubtotalsRepository iOrderSubtotalsRepository) { Doing(null); try { IList <IBOOrderSubtotals> boOrderSubtotalsCollection = new List <IBOOrderSubtotals>(); IList <IDAOOrderSubtotals> daoOrderSubtotalsCollection = iOrderSubtotalsRepository.SelectAll(); Done(null); foreach (IDAOOrderSubtotals daoOrderSubtotals in daoOrderSubtotalsCollection) { boOrderSubtotalsCollection.Add(new BOOrderSubtotals(daoOrderSubtotals)); } return(boOrderSubtotalsCollection); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(null); } }