private void SavePhoto(object sender, RoutedEventArgs e) { if (viewModel.Image.Bytes != null) { string brand = string.Empty; if (!string.IsNullOrWhiteSpace(watermarkTextBox.Text)) { brand = watermarkTextBox.Text; } viewModel.SaveImage(brand); } }