public IBOCustomerDemographics BOCustomerDemographics(ICustomerDemographicsRepository repo) { BOCustomerDemographics boCustomerDemographics = (BOCustomerDemographics)BOCustomerDemographics(); boCustomerDemographics.Repository = repo; return(boCustomerDemographics); }
///<Summary> ///CustomerDemographicsCollectionCount ///This method returns the collection count of BOCustomerDemographics objects ///</Summary> ///<returns> ///Int32 ///</returns> ///<parameters> /// ///</parameters> public static Int32 CustomerDemographicsCollectionCount(ICustomerDemographicsRepository iCustomerDemographicsRepository) { Doing(null); try { Int32 objCount = iCustomerDemographicsRepository.SelectAllCount(); return(objCount); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(-1); } }
///<Summary> ///CustomerDemographicsCollection ///This method returns the collection of BOCustomerDemographics objects ///</Summary> ///<returns> ///IList[IBOCustomerDemographics] ///</returns> ///<parameters> /// ///</parameters> public static IList <IBOCustomerDemographics> CustomerDemographicsCollection(ICustomerDemographicsRepository iCustomerDemographicsRepository) { Doing(null); try { IList <IBOCustomerDemographics> boCustomerDemographicsCollection = new List <IBOCustomerDemographics>(); IList <IDAOCustomerDemographics> daoCustomerDemographicsCollection = iCustomerDemographicsRepository.SelectAll(); Done(null); foreach (IDAOCustomerDemographics daoCustomerDemographics in daoCustomerDemographicsCollection) { boCustomerDemographicsCollection.Add(new BOCustomerDemographics(daoCustomerDemographics)); } return(boCustomerDemographicsCollection); } catch (Exception ex) { Failed(null, ex); Handle(null, ex); return(null); } }
public IQueryable <CustomerDemographics> GetCustomerDemographics([Service] ICustomerDemographicsRepository repository) => repository.GetCustomerDemographics();