Ejemplo n.º 1
0
        public IEnumerable <JobHistory> GetProfileJobHistory(int profileId)
        {
            var jobHistories = _jobHistoryRepository.FindBy(q => q.ProfileId == profileId).ToList();

            foreach (var jobHistory in jobHistories)
            {
                var jobType = _jobTypeRepository.GetSingle(jobHistory.JobTypeId);
                jobHistory.JobType = jobType;
            }
            return(jobHistories);
        }
Ejemplo n.º 2
0
        public Profile GetBasicProfileById(int profileId)
        {
            var profile = _profileRepository.GetSingle(p => p.Id == profileId);

            profile.Title    = _titleRepository.GetSingle(t => t.Id == profile.TitleId);
            profile.JobType  = _jobTypeRepository.GetSingle(j => j.Id == profile.JobTypeId);
            profile.JobTitle = _jobTitleRepository.GetSingle(jt => jt.Id == profile.JobTitleId);
            return(profile);
        }