public bool DelSysRolePurview(string Id) { using (ISysRolePurviewBLL SysRolePurviewBLL = BLLContainer.Resolve <ISysRolePurviewBLL>()) { try { SysRolePurview item = SysRolePurviewBLL.GetFirstOrDefault(Id); return(SysRolePurviewBLL.Delete(item)); } catch { return(false); } } }
public bool DelSysRolePurviews(string[] Ids) { using (ISysRolePurviewBLL SysRolePurviewBLL = BLLContainer.Resolve <ISysRolePurviewBLL>()) { try { List <SysRolePurview> entitys = new List <SysRolePurview>(); foreach (string id in Ids) { SysRolePurview item = SysRolePurviewBLL.GetFirstOrDefault(id); entitys.Add(item); } return(SysRolePurviewBLL.Delete(entitys)); } catch { return(false); } } }