public bool DelRsLine(string Id) { using (IRsLineBLL RsLineBLL = BLLContainer.Resolve <IRsLineBLL>()) { try { RsLine item = RsLineBLL.GetFirstOrDefault(Id); return(RsLineBLL.Delete(item)); } catch { return(false); } } }
public bool DelRsLines(string[] Ids) { using (IRsLineBLL RsLineBLL = BLLContainer.Resolve <IRsLineBLL>()) { try { List <RsLine> entitys = new List <RsLine>(); foreach (string id in Ids) { RsLine item = RsLineBLL.GetFirstOrDefault(id); entitys.Add(item); } return(RsLineBLL.Delete(entitys)); } catch { return(false); } } }