Exemplo n.º 1
0
 public SysUserPurview GetSysUserPurviewById(string Id)
 {
     using (ISysUserPurviewBLL SysUserPurviewBLL = BLLContainer.Resolve <ISysUserPurviewBLL>())
     {
         SysUserPurview model = SysUserPurviewBLL.GetFirstOrDefault(Id);
         return(model);
     }
 }
Exemplo n.º 2
0
 public bool AddSysUserPurview(SysUserPurview mSysUserPurview)
 {
     if (mSysUserPurview == null)
     {
         return(false);
     }
     using (ISysUserPurviewBLL SysUserPurviewBLL = BLLContainer.Resolve <ISysUserPurviewBLL>())
     {
         return(SysUserPurviewBLL.Add(mSysUserPurview));
     }
 }
Exemplo n.º 3
0
 public bool DelSysUserPurview(string Id)
 {
     using (ISysUserPurviewBLL SysUserPurviewBLL = BLLContainer.Resolve <ISysUserPurviewBLL>())
     {
         try
         {
             SysUserPurview item = SysUserPurviewBLL.GetFirstOrDefault(Id);
             return(SysUserPurviewBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
Exemplo n.º 4
0
 public bool DelSysUserPurviews(string[] Ids)
 {
     using (ISysUserPurviewBLL SysUserPurviewBLL = BLLContainer.Resolve <ISysUserPurviewBLL>())
     {
         try
         {
             List <SysUserPurview> entitys = new List <SysUserPurview>();
             foreach (string id in Ids)
             {
                 SysUserPurview item = SysUserPurviewBLL.GetFirstOrDefault(id);
                 entitys.Add(item);
             }
             return(SysUserPurviewBLL.Delete(entitys));
         }
         catch { return(false); }
     }
 }