public CustomMaterial(int id, string title, string description, IEnumerable<MaterialField> materialFields, byte[] flyerFrontSide, byte[] flyerBackside, CustomLogo customLogo) { Id = id; Title = title; Description = description; MaterialFields = materialFields.ToList(); FlyerFrontSide = flyerFrontSide; FlyerBackside = flyerBackside; CustomLogo = customLogo; }
private static CustomLogo ToCustomLogo(LogoModel logoModel) { var customLogo = new CustomLogo(logoModel.Logo, logoModel.LeftMargin, logoModel.TopMargin, logoModel.Width, logoModel.Height); return customLogo; }