Exemplo n.º 1
0
 public FDIPostWOCloseBatch GetFDIPostWOCloseBatchById(string Id)
 {
     using (IFDIPostWOCloseBatchBLL FDIPostWOCloseBatchBLL = BLLContainer.Resolve <IFDIPostWOCloseBatchBLL>())
     {
         FDIPostWOCloseBatch model = FDIPostWOCloseBatchBLL.GetFirstOrDefault(Id);
         return(model);
     }
 }
Exemplo n.º 2
0
 public bool DelFDIPostWOCloseBatch(string Id)
 {
     using (IFDIPostWOCloseBatchBLL FDIPostWOCloseBatchBLL = BLLContainer.Resolve <IFDIPostWOCloseBatchBLL>())
     {
         try
         {
             FDIPostWOCloseBatch item = FDIPostWOCloseBatchBLL.GetFirstOrDefault(Id);
             return(FDIPostWOCloseBatchBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
Exemplo n.º 3
0
 public bool DelFDIPostWOCloseBatchs(string[] Ids)
 {
     using (IFDIPostWOCloseBatchBLL FDIPostWOCloseBatchBLL = BLLContainer.Resolve <IFDIPostWOCloseBatchBLL>())
     {
         try
         {
             List <FDIPostWOCloseBatch> entitys = new List <FDIPostWOCloseBatch>();
             foreach (string id in Ids)
             {
                 FDIPostWOCloseBatch item = FDIPostWOCloseBatchBLL.GetFirstOrDefault(id);
                 entitys.Add(item);
             }
             return(FDIPostWOCloseBatchBLL.Delete(entitys));
         }
         catch { return(false); }
     }
 }