Beispiel #1
0
        public IBOOrdersTaxStatus BOOrdersTaxStatus(IOrdersTaxStatusRepository repo)
        {
            BOOrdersTaxStatus boOrdersTaxStatus = (BOOrdersTaxStatus)BOOrdersTaxStatus();

            boOrdersTaxStatus.Repository = repo;
            return(boOrdersTaxStatus);
        }
 ///<Summary>
 ///OrdersTaxStatusCollectionCount
 ///This method returns the collection count of BOOrdersTaxStatus objects
 ///</Summary>
 ///<returns>
 ///Int32
 ///</returns>
 ///<parameters>
 ///
 ///</parameters>
 public static Int32 OrdersTaxStatusCollectionCount(IOrdersTaxStatusRepository iOrdersTaxStatusRepository)
 {
     Doing(null);
     try
     {
         Int32 objCount = iOrdersTaxStatusRepository.SelectAllCount();
         return(objCount);
     }
     catch (Exception ex)
     {
         Failed(null, ex);
         Handle(null, ex);
         return(-1);
     }
 }
        ///<Summary>
        ///OrdersTaxStatusCollection
        ///This method returns the collection of BOOrdersTaxStatus objects
        ///</Summary>
        ///<returns>
        ///IList[IBOOrdersTaxStatus]
        ///</returns>
        ///<parameters>
        ///
        ///</parameters>
        public static IList <IBOOrdersTaxStatus> OrdersTaxStatusCollection(IOrdersTaxStatusRepository iOrdersTaxStatusRepository)
        {
            Doing(null);
            try
            {
                IList <IBOOrdersTaxStatus>  boOrdersTaxStatusCollection  = new List <IBOOrdersTaxStatus>();
                IList <IDAOOrdersTaxStatus> daoOrdersTaxStatusCollection = iOrdersTaxStatusRepository.SelectAll();
                Done(null);

                foreach (IDAOOrdersTaxStatus daoOrdersTaxStatus in daoOrdersTaxStatusCollection)
                {
                    boOrdersTaxStatusCollection.Add(new BOOrdersTaxStatus(daoOrdersTaxStatus));
                }

                return(boOrdersTaxStatusCollection);
            }
            catch (Exception ex)
            {
                Failed(null, ex);
                Handle(null, ex);
                return(null);
            }
        }