public void DeleteProduct() { try { CatalogItem p = CurrentProduct; _repositoryProduct.Delete(p); if (msg != null) { msg.ShowUI("Delete Successfully"); } PagingViewModel.RefreshData(); } catch (Exception ex) { if (msg != null) { msg.ShowUI(ex.Message); } } }