Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
 public virtual Panel MapEntity(CreatePanel model) => null;