private void btnDelete_Click(object sender, RoutedEventArgs e) { CCrypto stock = new CCrypto(); stock.Delete(); Refresh(); MainWindow m = new MainWindow(); m.Refresh(); //Close(); }
public ActionResult Edit(Guid id, CCrypto collection) { try { // TODO: Add update logic here collection.Delete(); return(RedirectToAction("Index")); } catch { return(View()); } }