public static DTO.ModuleFeatureStepAction ToDto(this Display.Action displayEntity)
        {
            var dto = new DTO.ModuleFeatureStepAction(
                displayEntity.Name,
                displayEntity.ParentName,
                displayEntity.Title,
                displayEntity.Sort,
                displayEntity.TypeId);

            return(dto);
        }
Exemple #2
0
        protected void AddCommand(ICommand command, string name, Entity.ModuleFeatureStepActionType actionType)
        {
            var action = new Display.Action
            {
                Name    = name,
                Command = command,
                TypeId  = actionType
            };

            Commands.Add(action);
        }
        public static Display.Action ToDisplayEntity(this DTO.ModuleFeatureStepAction dto)
        {
            var displayEntity = new Display.Action();

            displayEntity.Name       = dto.Name;
            displayEntity.ParentName = dto.ParentName;
            displayEntity.Sort       = dto.Sort;
            displayEntity.Title      = dto.Title;
            displayEntity.TypeId     = dto.Type;

            return(displayEntity);
        }