Example #1
0
 public ActionResult New(Vendor new_vendor)
 {
     _dataBase.Vendors.Add(new_vendor);
     _dataBase.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult New(Order new_order)
 {
     _dataBase.Orders.Add(new_order);
     _dataBase.SaveChanges();
     return(RedirectToAction("Index"));
 }