public IBOEmployeePrivileges BOEmployeePrivileges(IEmployeePrivilegesRepository repo)
        {
            BOEmployeePrivileges boEmployeePrivileges = (BOEmployeePrivileges)BOEmployeePrivileges();

            boEmployeePrivileges.Repository = repo;
            return(boEmployeePrivileges);
        }
 ///<Summary>
 ///EmployeePrivilegesCollectionCount
 ///This method returns the collection count of BOEmployeePrivileges objects
 ///</Summary>
 ///<returns>
 ///Int32
 ///</returns>
 ///<parameters>
 ///
 ///</parameters>
 public static Int32 EmployeePrivilegesCollectionCount(IEmployeePrivilegesRepository iEmployeePrivilegesRepository)
 {
     Doing(null);
     try
     {
         Int32 objCount = iEmployeePrivilegesRepository.SelectAllCount();
         return(objCount);
     }
     catch (Exception ex)
     {
         Failed(null, ex);
         Handle(null, ex);
         return(-1);
     }
 }
        ///<Summary>
        ///EmployeePrivilegesCollection
        ///This method returns the collection of BOEmployeePrivileges objects
        ///</Summary>
        ///<returns>
        ///IList[IBOEmployeePrivileges]
        ///</returns>
        ///<parameters>
        ///
        ///</parameters>
        public static IList <IBOEmployeePrivileges> EmployeePrivilegesCollection(IEmployeePrivilegesRepository iEmployeePrivilegesRepository)
        {
            Doing(null);
            try
            {
                IList <IBOEmployeePrivileges>  boEmployeePrivilegesCollection  = new List <IBOEmployeePrivileges>();
                IList <IDAOEmployeePrivileges> daoEmployeePrivilegesCollection = iEmployeePrivilegesRepository.SelectAll();
                Done(null);

                foreach (IDAOEmployeePrivileges daoEmployeePrivileges in daoEmployeePrivilegesCollection)
                {
                    boEmployeePrivilegesCollection.Add(new BOEmployeePrivileges(daoEmployeePrivileges));
                }

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