예제 #1
0
 private void _btnDeleteAsset_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (_vm.Asset != null)
         {
             _assetService.DeleteCmsAsset(_vm.Album.AlbumCode, _vm.Asset.GetCmsAsset());
             _vm.Album.DeleteCmsAsset(_vm.Asset);
             _vm.Asset = null;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }