public bool DelFmsAssetTagSetting(string Id) { using (IFmsAssetTagSettingBLL FmsAssetTagSettingBLL = BLLContainer.Resolve <IFmsAssetTagSettingBLL>()) { try { FmsAssetTagSetting item = FmsAssetTagSettingBLL.GetFirstOrDefault(Id); return(FmsAssetTagSettingBLL.Delete(item)); } catch { return(false); } } }
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); } } }