public bool Delete(Guid id) { // Enhance this method to remove product options first before deleting the product itself. _dalObj = new ProductsDAL(); if (!_dalObj.Delete(id)) { return(false); } return(true); }
/// <summary> /// 删除一条数据 /// </summary> public void Delete(int id) { dal.Delete(id); }