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