public FDIGetWOrder GetFDIGetWOrderById(string Id) { using (IFDIGetWOrderBLL FDIGetWOrderBLL = BLLContainer.Resolve <IFDIGetWOrderBLL>()) { FDIGetWOrder model = FDIGetWOrderBLL.GetFirstOrDefault(Id); return(model); } }
public bool AddFDIGetWOrder(FDIGetWOrder mFDIGetWOrder) { if (mFDIGetWOrder == null) { return(false); } using (IFDIGetWOrderBLL FDIGetWOrderBLL = BLLContainer.Resolve <IFDIGetWOrderBLL>()) { return(FDIGetWOrderBLL.Add(mFDIGetWOrder)); } }
public bool DelFDIGetWOrder(string Id) { using (IFDIGetWOrderBLL FDIGetWOrderBLL = BLLContainer.Resolve <IFDIGetWOrderBLL>()) { try { FDIGetWOrder item = FDIGetWOrderBLL.GetFirstOrDefault(Id); return(FDIGetWOrderBLL.Delete(item)); } catch { return(false); } } }
public bool DelFDIGetWOrders(string[] Ids) { using (IFDIGetWOrderBLL FDIGetWOrderBLL = BLLContainer.Resolve <IFDIGetWOrderBLL>()) { try { List <FDIGetWOrder> entitys = new List <FDIGetWOrder>(); foreach (string id in Ids) { FDIGetWOrder item = FDIGetWOrderBLL.GetFirstOrDefault(id); entitys.Add(item); } return(FDIGetWOrderBLL.Delete(entitys)); } catch { return(false); } } }