示例#1
0
        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;
        }
示例#2
0
 private static CustomLogo ToCustomLogo(LogoModel logoModel)
 {
     var customLogo = new CustomLogo(logoModel.Logo, logoModel.LeftMargin, logoModel.TopMargin, logoModel.Width,
         logoModel.Height);
     return customLogo;
 }