コード例 #1
0
        public InterviewerQueryModel Map(Interviewer interviewer)
        {
            if (interviewer == null)
            {
                return(null);
            }

            return(new InterviewerQueryModel
            {
                Id = interviewer.Id,
                FirstName = interviewer.FirstName,
                LastName = interviewer.LastName,
                Interviews = interviewQuery.Map(interviewer.Interviews)
            });
        }
コード例 #2
0
        public CandidateQueryModel Map(Candidate candidate)
        {
            if (candidate == null)
            {
                return(null);
            }

            return(new CandidateQueryModel
            {
                Id = candidate.Id,
                FirstName = candidate.FirstName,
                LastName = candidate.LastName,
                Birthdate = candidate.Birthdate,
                Email = candidate.Email,
                Phone = candidate.Phone,
                Interviews = interviewQuery.Map(candidate.Interviews)
            });
        }