public IBOCustomerAndSuppliersByCity BOCustomerAndSuppliersByCity(ICustomerAndSuppliersByCityRepository repo) { BOCustomerAndSuppliersByCity boCustomerAndSuppliersByCity = (BOCustomerAndSuppliersByCity)BOCustomerAndSuppliersByCity(); boCustomerAndSuppliersByCity.Repository = repo; return(boCustomerAndSuppliersByCity); }
///<Summary> ///CustomerAndSuppliersByCityCollectionCount ///This method returns the collection count of BOCustomerAndSuppliersByCity objects ///</Summary> ///<returns> ///Int32 ///</returns> ///<parameters> /// ///</parameters> public static Int32 CustomerAndSuppliersByCityCollectionCount(ICustomerAndSuppliersByCityRepository iCustomerAndSuppliersByCityRepository) { Doing(null); try { Int32 objCount = iCustomerAndSuppliersByCityRepository.SelectAllCount(); return(objCount); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(-1); } }
///<Summary> ///CustomerAndSuppliersByCityCollection ///This method returns the collection of BOCustomerAndSuppliersByCity objects ///</Summary> ///<returns> ///IList[IBOCustomerAndSuppliersByCity] ///</returns> ///<parameters> /// ///</parameters> public static IList <IBOCustomerAndSuppliersByCity> CustomerAndSuppliersByCityCollection(ICustomerAndSuppliersByCityRepository iCustomerAndSuppliersByCityRepository) { Doing(null); try { IList <IBOCustomerAndSuppliersByCity> boCustomerAndSuppliersByCityCollection = new List <IBOCustomerAndSuppliersByCity>(); IList <IDAOCustomerAndSuppliersByCity> daoCustomerAndSuppliersByCityCollection = iCustomerAndSuppliersByCityRepository.SelectAll(); Done(null); foreach (IDAOCustomerAndSuppliersByCity daoCustomerAndSuppliersByCity in daoCustomerAndSuppliersByCityCollection) { boCustomerAndSuppliersByCityCollection.Add(new BOCustomerAndSuppliersByCity(daoCustomerAndSuppliersByCity)); } return(boCustomerAndSuppliersByCityCollection); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(null); } }