Blog.Logic.ObjectMapper.EducationTypeMapper.ToDto C# (CSharp) Method

ToDto() public static method

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