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

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

            MainWindow m = new MainWindow();

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