public IBOIdentityUserClaim BOIdentityUserClaim(IIdentityUserClaimRepository repo)
        {
            BOIdentityUserClaim boIdentityUserClaim = (BOIdentityUserClaim)BOIdentityUserClaim();

            boIdentityUserClaim.Repository = repo;
            return(boIdentityUserClaim);
        }
 ///<Summary>
 ///IdentityUserClaimCollectionCount
 ///This method returns the collection count of BOIdentityUserClaim objects
 ///</Summary>
 ///<returns>
 ///Int32
 ///</returns>
 ///<parameters>
 ///
 ///</parameters>
 public static Int32 IdentityUserClaimCollectionCount(IIdentityUserClaimRepository iIdentityUserClaimRepository)
 {
     Doing(null);
     try
     {
         Int32 objCount = iIdentityUserClaimRepository.SelectAllCount();
         return(objCount);
     }
     catch (Exception ex)
     {
         Failed(null, ex);
         Handle(null, ex);
         return(-1);
     }
 }
        ///<Summary>
        ///IdentityUserClaimCollection
        ///This method returns the collection of BOIdentityUserClaim objects
        ///</Summary>
        ///<returns>
        ///IList[IBOIdentityUserClaim]
        ///</returns>
        ///<parameters>
        ///
        ///</parameters>
        public static IList <IBOIdentityUserClaim> IdentityUserClaimCollection(IIdentityUserClaimRepository iIdentityUserClaimRepository)
        {
            Doing(null);
            try
            {
                IList <IBOIdentityUserClaim>  boIdentityUserClaimCollection  = new List <IBOIdentityUserClaim>();
                IList <IDAOIdentityUserClaim> daoIdentityUserClaimCollection = iIdentityUserClaimRepository.SelectAll();
                Done(null);

                foreach (IDAOIdentityUserClaim daoIdentityUserClaim in daoIdentityUserClaimCollection)
                {
                    boIdentityUserClaimCollection.Add(new BOIdentityUserClaim(daoIdentityUserClaim));
                }

                return(boIdentityUserClaimCollection);
            }
            catch (Exception ex)
            {
                Failed(null, ex);
                Handle(null, ex);
                return(null);
            }
        }
Esempio n. 4
0
 public MyProfileController(IUserProfileRepository userProfileRepository, IIdentityUserClaimRepository identityUserClaimRepository, UserManager <User> userManager)
 {
     _userManager                 = userManager;
     _userProfileRepository       = userProfileRepository;
     _identityUserClaimRepository = identityUserClaimRepository;
 }