public bool DelFDIPostRawMaterialBatch(string Id) { using (IFDIPostRawMaterialBatchBLL FDIPostRawMaterialBatchBLL = BLLContainer.Resolve <IFDIPostRawMaterialBatchBLL>()) { try { FDIPostRawMaterialBatch item = FDIPostRawMaterialBatchBLL.GetFirstOrDefault(Id); return(FDIPostRawMaterialBatchBLL.Delete(item)); } catch { return(false); } } }
public bool DelFDIPostRawMaterialBatchs(string[] Ids) { using (IFDIPostRawMaterialBatchBLL FDIPostRawMaterialBatchBLL = BLLContainer.Resolve <IFDIPostRawMaterialBatchBLL>()) { try { List <FDIPostRawMaterialBatch> entitys = new List <FDIPostRawMaterialBatch>(); foreach (string id in Ids) { FDIPostRawMaterialBatch item = FDIPostRawMaterialBatchBLL.GetFirstOrDefault(id); entitys.Add(item); } return(FDIPostRawMaterialBatchBLL.Delete(entitys)); } catch { return(false); } } }