public bool DelRsMaintainStandards(string Id) { using (IRsMaintainStandardsBLL RsMaintainStandardsBLL = BLLContainer.Resolve <IRsMaintainStandardsBLL>()) { try { RsMaintainStandards item = RsMaintainStandardsBLL.GetFirstOrDefault(Id); return(RsMaintainStandardsBLL.Delete(item)); } catch { return(false); } } }
public bool DelRsMaintainStandardss(string[] Ids) { using (IRsMaintainStandardsBLL RsMaintainStandardsBLL = BLLContainer.Resolve <IRsMaintainStandardsBLL>()) { try { List <RsMaintainStandards> entitys = new List <RsMaintainStandards>(); foreach (string id in Ids) { RsMaintainStandards item = RsMaintainStandardsBLL.GetFirstOrDefault(id); entitys.Add(item); } return(RsMaintainStandardsBLL.Delete(entitys)); } catch { return(false); } } }