public MatchyBackend.Match mapToService(Match match) { CvMapping cvMapping = new CvMapping(); JobMapping jobMapping = new JobMapping(); MatchyBackend.Match backEndMatch = new MatchyBackend.Match() { Cv = cvMapping.mapToService(match.Cv), Date = match.Date, Job = jobMapping.mapToService(match.Job), Score = match.Score }; return backEndMatch; }
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; }