예제 #1
0
        public override Panel MapEntity(CreatePanel model)
        {
            var realModel = (CreateMemePanel)model;

            //TODO: change when automapper
            var entity = new MemePanel()
            {
                Title    = realModel.Title,
                Position = new PanelPosition()
                {
                    Column = realModel.Position.Column,
                    Row    = realModel.Position.Row,
                    Width  = realModel.Position.Width,
                    Height = realModel.Position.Height
                },
            };

            return(entity);
        }
예제 #2
0
        public override Panel MapEntity(CreatePanel model)
        {
            var realModel = (CreateStaticBranchPanel)model;

            //TODO: change when automapper
            var entity = new StaticBranchPanel()
            {
                Title    = realModel.Title,
                Position = new PanelPosition()
                {
                    Column = realModel.Position.Column,
                    Row    = realModel.Position.Row,
                    Width  = realModel.Position.Width,
                    Height = realModel.Position.Height
                },
                ProjectId        = realModel.ProjectId,
                StaticBranchName = realModel.StaticBranchName,
            };

            return(entity);
        }
예제 #3
0
        public override Panel MapEntity(CreatePanel model)
        {
            var realModel = (CreateDynamicPipelinePanel)model;

            //TODO: change when automapper
            var entity = new DynamicPipelinesPanel()
            {
                Title    = realModel.Title,
                Position = new PanelPosition()
                {
                    Column = realModel.Position.Column,
                    Row    = realModel.Position.Row,
                    Width  = realModel.Position.Width,
                    Height = realModel.Position.Height
                },
                ProjectId = realModel.ProjectId,
                HowManyLastPipelinesToRead = realModel.HowManyLastPipelinesToRead,
                PanelRegex = realModel.PanelRegex
            };

            return(entity);
        }
예제 #4
0
 public virtual Panel MapEntity(CreatePanel model) => null;