public FDIInventorySynBacth GetFDIInventorySynBacthById(string Id) { using (IFDIInventorySynBacthBLL FDIInventorySynBacthBLL = BLLContainer.Resolve <IFDIInventorySynBacthBLL>()) { FDIInventorySynBacth model = FDIInventorySynBacthBLL.GetFirstOrDefault(Id); return(model); } }
public bool DelFDIInventorySynBacth(string Id) { using (IFDIInventorySynBacthBLL FDIInventorySynBacthBLL = BLLContainer.Resolve <IFDIInventorySynBacthBLL>()) { try { FDIInventorySynBacth item = FDIInventorySynBacthBLL.GetFirstOrDefault(Id); return(FDIInventorySynBacthBLL.Delete(item)); } catch { return(false); } } }
public bool DelFDIInventorySynBacths(string[] Ids) { using (IFDIInventorySynBacthBLL FDIInventorySynBacthBLL = BLLContainer.Resolve <IFDIInventorySynBacthBLL>()) { try { List <FDIInventorySynBacth> entitys = new List <FDIInventorySynBacth>(); foreach (string id in Ids) { FDIInventorySynBacth item = FDIInventorySynBacthBLL.GetFirstOrDefault(id); entitys.Add(item); } return(FDIInventorySynBacthBLL.Delete(entitys)); } catch { return(false); } } }