public static ViewModels.PersonEducation GetDto(Models.ViewPersonEducation entity) { var result = new ViewModels.PersonEducation(); FillDto(entity, result); return(result); }
public static void Fill(Models.PersonEducation entity, ViewModels.PersonEducation personeducation) { entity.Id = personeducation.Id; entity.PersonId = personeducation.PersonId; entity.EducationDegreeId = personeducation.EducationDegreeId; entity.DateCatch = personeducation.DateCatch; entity.College = personeducation.College; entity.Remark = personeducation.Remark; entity.Title = personeducation.Title; entity.StudyFieldId = personeducation.StudyFieldId; entity.FileTitle = personeducation.FileTitle; entity.FileUrl = personeducation.FileUrl; entity.SysUrl = personeducation.SysUrl; entity.FileType = personeducation.FileType; }
public static void FillDto(Models.ViewPersonEducation entity, ViewModels.PersonEducation viewpersoneducation) { viewpersoneducation.Id = entity.Id; viewpersoneducation.PersonId = entity.PersonId; viewpersoneducation.EducationDegreeId = entity.EducationDegreeId; viewpersoneducation.DateCatch = entity.DateCatch; viewpersoneducation.College = entity.College; viewpersoneducation.Remark = entity.Remark; viewpersoneducation.Title = entity.Title; viewpersoneducation.StudyFieldId = entity.StudyFieldId; viewpersoneducation.StudyField = entity.StudyField; viewpersoneducation.EducationDegree = entity.EducationDegree; viewpersoneducation.FileTitle = entity.FileTitle; viewpersoneducation.FileUrl = entity.FileUrl; viewpersoneducation.SysUrl = entity.SysUrl; viewpersoneducation.FileType = entity.FileType; }