Пример #1
0
 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);
 }
Пример #2
0
 /// <summary>
 /// 删除一条数据
 /// </summary>
 public void Delete(int id)
 {
     dal.Delete(id);
 }