예제 #1
0
        public Profile LoadProfileByAccountID(Int32 AccountID)
        {
            Profile profile = _profileRepository.GetProfileByAccountID(AccountID);
            List <ProfileAttribute> attributes = new List <ProfileAttribute>();
            LevelOfExperience       levelOfExperience;

            if (profile != null && profile.ProfileID > 0)
            {
                attributes = _profileAttributeService.GetProfileAttributesByProfileID(profile.ProfileID);
                //levelOfExperience = _levelOfExperienceRepository.GetLevelOfExperienceByID(profile.LevelOfExperienceID);

                profile.Attributes = attributes;
                // profile.levelOfExperience = levelOfExperience;
            }
            return(profile);
        }
예제 #2
0
 public List <ProfileAttribute> GetProfileAttributeByProfileID(Profile profile)
 {
     return(_profileAttributeService.GetProfileAttributesByProfileID(profile.ProfileID));
 }