コード例 #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
ファイル: ManageProfilePresenter.cs プロジェクト: ngocpq/MHX2
 public List <ProfileAttribute> GetProfileAttributeByProfileID(Profile profile)
 {
     return(_profileAttributeService.GetProfileAttributesByProfileID(profile.ProfileID));
 }