Ejemplo n.º 1
0
 public bool DelFmsAssetTagSetting(string Id)
 {
     using (IFmsAssetTagSettingBLL FmsAssetTagSettingBLL = BLLContainer.Resolve <IFmsAssetTagSettingBLL>())
     {
         try
         {
             FmsAssetTagSetting item = FmsAssetTagSettingBLL.GetFirstOrDefault(Id);
             return(FmsAssetTagSettingBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
Ejemplo n.º 2
0
 public bool DelFmsAssetTagSettings(string[] Ids)
 {
     using (IFmsAssetTagSettingBLL FmsAssetTagSettingBLL = BLLContainer.Resolve <IFmsAssetTagSettingBLL>())
     {
         try
         {
             List <FmsAssetTagSetting> entitys = new List <FmsAssetTagSetting>();
             foreach (string id in Ids)
             {
                 FmsAssetTagSetting item = FmsAssetTagSettingBLL.GetFirstOrDefault(id);
                 entitys.Add(item);
             }
             return(FmsAssetTagSettingBLL.Delete(entitys));
         }
         catch { return(false); }
     }
 }