public IBOİnventoryTransactions BOİnventoryTransactions(IInventoryTransactionsRepository repo) { BOInventoryTransactions boİnventoryTransactions = (BOInventoryTransactions)BOİnventoryTransactions(); boİnventoryTransactions.Repository = repo; return(boİnventoryTransactions); }
///<Summary> ///InventoryTransactionsCollectionCount ///This method returns the collection count of BOInventoryTransactions objects ///</Summary> ///<returns> ///Int32 ///</returns> ///<parameters> /// ///</parameters> public static Int32 InventoryTransactionsCollectionCount(IInventoryTransactionsRepository iInventoryTransactionsRepository) { Doing(null); try { Int32 objCount = iInventoryTransactionsRepository.SelectAllCount(); return(objCount); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(-1); } }
///<Summary> ///InventoryTransactionsCollection ///This method returns the collection of BOInventoryTransactions objects ///</Summary> ///<returns> ///IList[IBOInventoryTransactions] ///</returns> ///<parameters> /// ///</parameters> public static IList <IBOInventoryTransactions> InventoryTransactionsCollection(IInventoryTransactionsRepository iInventoryTransactionsRepository) { Doing(null); try { IList <IBOInventoryTransactions> boInventoryTransactionsCollection = new List <IBOInventoryTransactions>(); IList <IDAOInventoryTransactions> daoInventoryTransactionsCollection = iInventoryTransactionsRepository.SelectAll(); Done(null); foreach (IDAOInventoryTransactions daoInventoryTransactions in daoInventoryTransactionsCollection) { boInventoryTransactionsCollection.Add(new BOInventoryTransactions(daoInventoryTransactions)); } return(boInventoryTransactionsCollection); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(null); } }