Esempio n. 1
0
    public MatchyBackend.User mapToService(User user)
    {
        CompanyMapping companyMapping = new CompanyMapping();
        CvMapping cvMapping = new CvMapping();

        MatchyBackend.User backEndUser = new MatchyBackend.User()
        {
            BirthDay = user.BirthDay,
            Email = user.Email,
            MayLogin = user.MayLogin,
            Pass = user.Pass,
            Type = user.Type,
            UserCompany = companyMapping.MapToService(user.UserCompany),
            UserCv = cvMapping.mapToService(user.UserCv),
            ProfileId = user.ProfileId
        };

        return backEndUser;
    }
Esempio n. 2
0
    public MatchyBackend.Job mapToService(Job job)
    {
        CompanyMapping companyMapping = new CompanyMapping();
        EducationMapper educationMapping = new EducationMapper();
        DetailJobMapper detailMapping = new DetailJobMapper();

        MatchyBackend.Job backEndUser = new MatchyBackend.Job()
        {
            JobID = job.JobID,
            Company = companyMapping.MapToService(job.Company),
            Education = educationMapping.MapToService(job.Education),
            DetailJob = detailMapping.MapToService(job.DetailJob),
            JobTitle = job.JobTitle,
            JobDescription = job.JobDescription,
            JobPlaceDate = job.JobPlaceDate,
            JobHours = job.JobHours
        };

        return backEndUser;
    }