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); }
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); }
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); }
public virtual Panel MapEntity(CreatePanel model) => null;