Ejemplo n.º 1
0
        public IBOCustomerDemographics BOCustomerDemographics(ICustomerDemographicsRepository repo)
        {
            BOCustomerDemographics boCustomerDemographics = (BOCustomerDemographics)BOCustomerDemographics();

            boCustomerDemographics.Repository = repo;
            return(boCustomerDemographics);
        }
Ejemplo n.º 2
0
 ///<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);
     }
 }
Ejemplo n.º 3
0
        ///<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);
            }
        }
Ejemplo n.º 4
0
 public IQueryable <CustomerDemographics> GetCustomerDemographics([Service] ICustomerDemographicsRepository repository) => repository.GetCustomerDemographics();