コード例 #1
0
        public static DTO.ModuleFeatureStepAdvisor ToDto(this Display.Advisor displayEntity)
        {
            var dto = new DTO.ModuleFeatureStepAdvisor(
                displayEntity.Sort,
                displayEntity.Message);

            return(dto);
        }
コード例 #2
0
        public static Display.Advisor ToDisplayEntity(this DTO.ModuleFeatureStepAdvisor dto)
        {
            var displayEntity = new Display.Advisor();

            displayEntity.Sort    = dto.Sort;
            displayEntity.Message = dto.Message;

            return(displayEntity);
        }