private static void RebindLogoImage(CachedImage imgCompanyLogo, DiscountData viewModel) { imgCompanyLogo.Source = null; var imagePath = viewModel != null ? (string)FileNameConverter.Convert(viewModel.LogoFileName, typeof(string), false, CultureInfo.CurrentCulture) : null; if (!string.IsNullOrEmpty(imagePath)) { imgCompanyLogo.Source = imagePath; } }