public IBOIdentityUserProfile BOIdentityUserProfile(IIdentityUserProfileRepository repo)
        {
            BOIdentityUserProfile boIdentityUserProfile = (BOIdentityUserProfile)BOIdentityUserProfile();

            boIdentityUserProfile.Repository = repo;
            return(boIdentityUserProfile);
        }
Beispiel #2
0
 ///<Summary>
 ///IdentityUserProfileCollectionCount
 ///This method returns the collection count of BOIdentityUserProfile objects
 ///</Summary>
 ///<returns>
 ///Int32
 ///</returns>
 ///<parameters>
 ///
 ///</parameters>
 public static Int32 IdentityUserProfileCollectionCount(IIdentityUserProfileRepository iIdentityUserProfileRepository)
 {
     Doing(null);
     try
     {
         Int32 objCount = iIdentityUserProfileRepository.SelectAllCount();
         return(objCount);
     }
     catch (Exception ex)
     {
         Failed(null, ex);
         Handle(null, ex);
         return(-1);
     }
 }
Beispiel #3
0
        ///<Summary>
        ///IdentityUserProfileCollection
        ///This method returns the collection of BOIdentityUserProfile objects
        ///</Summary>
        ///<returns>
        ///IList[IBOIdentityUserProfile]
        ///</returns>
        ///<parameters>
        ///
        ///</parameters>
        public static IList <IBOIdentityUserProfile> IdentityUserProfileCollection(IIdentityUserProfileRepository iIdentityUserProfileRepository)
        {
            Doing(null);
            try
            {
                IList <IBOIdentityUserProfile>  boIdentityUserProfileCollection  = new List <IBOIdentityUserProfile>();
                IList <IDAOIdentityUserProfile> daoIdentityUserProfileCollection = iIdentityUserProfileRepository.SelectAll();
                Done(null);

                foreach (IDAOIdentityUserProfile daoIdentityUserProfile in daoIdentityUserProfileCollection)
                {
                    boIdentityUserProfileCollection.Add(new BOIdentityUserProfile(daoIdentityUserProfile));
                }

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