public IBOOrderDetailsStatus BOOrderDetailsStatus(IOrderDetailsStatusRepository repo)
        {
            BOOrderDetailsStatus boOrderDetailsStatus = (BOOrderDetailsStatus)BOOrderDetailsStatus();

            boOrderDetailsStatus.Repository = repo;
            return(boOrderDetailsStatus);
        }
 ///<Summary>
 ///OrderDetailsStatusCollectionCount
 ///This method returns the collection count of BOOrderDetailsStatus objects
 ///</Summary>
 ///<returns>
 ///Int32
 ///</returns>
 ///<parameters>
 ///
 ///</parameters>
 public static Int32 OrderDetailsStatusCollectionCount(IOrderDetailsStatusRepository iOrderDetailsStatusRepository)
 {
     Doing(null);
     try
     {
         Int32 objCount = iOrderDetailsStatusRepository.SelectAllCount();
         return(objCount);
     }
     catch (Exception ex)
     {
         Failed(null, ex);
         Handle(null, ex);
         return(-1);
     }
 }
        ///<Summary>
        ///OrderDetailsStatusCollection
        ///This method returns the collection of BOOrderDetailsStatus objects
        ///</Summary>
        ///<returns>
        ///IList[IBOOrderDetailsStatus]
        ///</returns>
        ///<parameters>
        ///
        ///</parameters>
        public static IList <IBOOrderDetailsStatus> OrderDetailsStatusCollection(IOrderDetailsStatusRepository iOrderDetailsStatusRepository)
        {
            Doing(null);
            try
            {
                IList <IBOOrderDetailsStatus>  boOrderDetailsStatusCollection  = new List <IBOOrderDetailsStatus>();
                IList <IDAOOrderDetailsStatus> daoOrderDetailsStatusCollection = iOrderDetailsStatusRepository.SelectAll();
                Done(null);

                foreach (IDAOOrderDetailsStatus daoOrderDetailsStatus in daoOrderDetailsStatusCollection)
                {
                    boOrderDetailsStatusCollection.Add(new BOOrderDetailsStatus(daoOrderDetailsStatus));
                }

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