using (var svc = new LoyaltyService.LoyaltyProductClient())
{
var request = new LoyaltyService.ManagementGroupRequestOfGalleryImage();
request.Token = "Token";
request.ManagementGroup = "Management group";
var image = new LoyaltyService.GalleryImage();
image.RSN = Guid.NewGuid();
image.DisplayValue = "red_bag.jpg";
image.Entity_RSN = Guid.NewGuid();
image.PrimaryImage_RSN = new Guid("8f627427-a431-42ba-9b05-6567923e4b68");;
image.SourceImage_RSN = new Guid("66e57486-c335-46c9-acd9-6b1a58be3504");;
image.ThumbnailImage_RSN = new Guid("9df05b29-9a32-4113-8181-8bc81a1ddd5f");;
image.FeaturedImage = false;
image.DisplayOrder = 1;
request.Value = image;
LoyaltyService.Result result = svc.InsertProductGalleryImage(request);
if (result.FaultCode == 0)
{
}
else
{
throw new Exception(result.FaultDescription);
}
}