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); }
public List <ProfileAttribute> GetProfileAttributeByProfileID(Profile profile) { return(_profileAttributeService.GetProfileAttributesByProfileID(profile.ProfileID)); }