public CustomerLogo(byte[] logoImage, string logoMimeType) { Enums.LogoImageFormat?logoFormat = null; switch (logoMimeType) { case ("image/png"): logoFormat = Enums.LogoImageFormat.PNG; break; case ("image/jpg"): case ("image/jpeg"): logoFormat = Enums.LogoImageFormat.JPEG; break; case ("image/gif"): logoFormat = Enums.LogoImageFormat.GIF; break; } this.LogoImage = logoImage; this.LogoFormat = logoFormat.Value; }
public CustomerLogo(byte[] logoImage, Enums.LogoImageFormat logoFormat) { this.LogoImage = logoImage; this.LogoFormat = logoFormat; }