Beispiel #1
0
 public bool DelWmsAllocationInfo(string Id)
 {
     using (IWmsAllocationInfoBLL WmsAllocationInfoBLL = BLLContainer.Resolve <IWmsAllocationInfoBLL>())
     {
         try
         {
             WmsAllocationInfo item = WmsAllocationInfoBLL.GetFirstOrDefault(Id);
             return(WmsAllocationInfoBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
Beispiel #2
0
 public bool DelWmsAllocationInfos(string[] Ids)
 {
     using (IWmsAllocationInfoBLL WmsAllocationInfoBLL = BLLContainer.Resolve <IWmsAllocationInfoBLL>())
     {
         try
         {
             List <WmsAllocationInfo> entitys = new List <WmsAllocationInfo>();
             foreach (string id in Ids)
             {
                 WmsAllocationInfo item = WmsAllocationInfoBLL.GetFirstOrDefault(id);
                 entitys.Add(item);
             }
             return(WmsAllocationInfoBLL.Delete(entitys));
         }
         catch { return(false); }
     }
 }