Exemplo n.º 1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            CCrypto stock = new CCrypto();

            stock.Ticker = txtStock.Text;
            stock.Insert();
            Refresh();
            //Close();
        }
Exemplo n.º 2
0
 public ActionResult Create(CCrypto collection)
 {
     try
     {
         // TODO: Add insert logic here
         collection.Insert();
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }