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