예제 #1
0
 public ActionResult Create(ProductMaster p)
 {
     ctx.ProductMasters.Add(p);
     ctx.SaveChanges();
     return RedirectToAction("Index");
 }
예제 #2
0
 public ActionResult Create()
 {
     var Product = new ProductMaster();
     return View(Product);
 }