Example #1
0
 public ActionResult Add(product Product)
 {
     if (ModelState.IsValid)
     {
         product.Add(Product);
         return(RedirectToAction("index", "Product"));
     }
     return(View());
 }
Example #2
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(Jium.Model.product model)
 {
     return(dal.Add(model));
 }