/// <summary> /// 删除一条数据 /// </summary> public bool Delete(int id) { return(dal.Delete(id)); }
public ActionResult Delete(int id) { product.Delete(id); return(RedirectToAction("index")); }