Exemplo n.º 1
0
 public SysRolePurview GetSysRolePurviewById(string Id)
 {
     using (ISysRolePurviewBLL SysRolePurviewBLL = BLLContainer.Resolve <ISysRolePurviewBLL>())
     {
         SysRolePurview model = SysRolePurviewBLL.GetFirstOrDefault(Id);
         return(model);
     }
 }
Exemplo n.º 2
0
 public bool DelSysRolePurview(string Id)
 {
     using (ISysRolePurviewBLL SysRolePurviewBLL = BLLContainer.Resolve <ISysRolePurviewBLL>())
     {
         try
         {
             SysRolePurview item = SysRolePurviewBLL.GetFirstOrDefault(Id);
             return(SysRolePurviewBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
Exemplo n.º 3
0
 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); }
     }
 }