Esempio n. 1
0
        public void DeleteStock(Guid id)
        {
            CStock stock = new CStock {
                Id = id
            };

            stock.Delete();
        }
Esempio n. 2
0
        private void btnDelete_Click(object sender, RoutedEventArgs e)
        {
            stock.Delete();
            Refresh();

            MainWindow m = new MainWindow();

            m.Refresh();
            //Close();
        }
Esempio n. 3
0
 public ActionResult Delete(Guid id, CStock collection)
 {
     try
     {
         // TODO: Add delete logic here
         collection.Delete();
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Esempio n. 4
0
 public void DeleteStockObj(CStock stock)
 {
     stock.Delete();
 }