Blog.Logic.ObjectMapper.EducationTypeMapper.ToDto C# (CSharp) 메소드

ToDto() 공개 정적인 메소드

public static ToDto ( Blog.DataAccess.Database.Entities.Objects educationType ) : EducationType
educationType Blog.DataAccess.Database.Entities.Objects
리턴 EducationType
        public static EducationType ToDto(Db.EducationType educationType)
        {
            return educationType == null ? null : 
                new EducationType
                {
                    EducationTypeId = educationType.EducationTypeId,
                    EducationTypeName = educationType.EducationTypeName
                };
        }
EducationTypeMapper