public bool DelSysPurview(string Id) { using (ISysPurviewBLL SysPurviewBLL = BLLContainer.Resolve <ISysPurviewBLL>()) { try { SysPurview item = SysPurviewBLL.GetFirstOrDefault(Id); return(SysPurviewBLL.Delete(item)); } catch { return(false); } } }
public bool DelSysPurviews(string[] Ids) { using (ISysPurviewBLL SysPurviewBLL = BLLContainer.Resolve <ISysPurviewBLL>()) { try { List <SysPurview> entitys = new List <SysPurview>(); foreach (string id in Ids) { SysPurview item = SysPurviewBLL.GetFirstOrDefault(id); entitys.Add(item); } return(SysPurviewBLL.Delete(entitys)); } catch { return(false); } } }