Пример #1
0
 public FDIGetWOrder GetFDIGetWOrderById(string Id)
 {
     using (IFDIGetWOrderBLL FDIGetWOrderBLL = BLLContainer.Resolve <IFDIGetWOrderBLL>())
     {
         FDIGetWOrder model = FDIGetWOrderBLL.GetFirstOrDefault(Id);
         return(model);
     }
 }
Пример #2
0
 public bool AddFDIGetWOrder(FDIGetWOrder mFDIGetWOrder)
 {
     if (mFDIGetWOrder == null)
     {
         return(false);
     }
     using (IFDIGetWOrderBLL FDIGetWOrderBLL = BLLContainer.Resolve <IFDIGetWOrderBLL>())
     {
         return(FDIGetWOrderBLL.Add(mFDIGetWOrder));
     }
 }
Пример #3
0
 public bool DelFDIGetWOrder(string Id)
 {
     using (IFDIGetWOrderBLL FDIGetWOrderBLL = BLLContainer.Resolve <IFDIGetWOrderBLL>())
     {
         try
         {
             FDIGetWOrder item = FDIGetWOrderBLL.GetFirstOrDefault(Id);
             return(FDIGetWOrderBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
Пример #4
0
 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); }
     }
 }