Ejemplo n.º 1
0
 public bool DelFDIPostSaleOrderDetail(string Id)
 {
     using (IFDIPostSaleOrderDetailBLL FDIPostSaleOrderDetailBLL = BLLContainer.Resolve <IFDIPostSaleOrderDetailBLL>())
     {
         try
         {
             FDIPostSaleOrderDetail item = FDIPostSaleOrderDetailBLL.GetFirstOrDefault(Id);
             return(FDIPostSaleOrderDetailBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
Ejemplo n.º 2
0
 public bool DelFDIPostSaleOrderDetails(string[] Ids)
 {
     using (IFDIPostSaleOrderDetailBLL FDIPostSaleOrderDetailBLL = BLLContainer.Resolve <IFDIPostSaleOrderDetailBLL>())
     {
         try
         {
             List <FDIPostSaleOrderDetail> entitys = new List <FDIPostSaleOrderDetail>();
             foreach (string id in Ids)
             {
                 FDIPostSaleOrderDetail item = FDIPostSaleOrderDetailBLL.GetFirstOrDefault(id);
                 entitys.Add(item);
             }
             return(FDIPostSaleOrderDetailBLL.Delete(entitys));
         }
         catch { return(false); }
     }
 }