Exemple #1
0
 public SysMenuPurview GetSysMenuPurviewById(string Id)
 {
     using (ISysMenuPurviewBLL SysMenuPurviewBLL = BLLContainer.Resolve <ISysMenuPurviewBLL>())
     {
         SysMenuPurview model = SysMenuPurviewBLL.GetFirstOrDefault(Id);
         return(model);
     }
 }
Exemple #2
0
 public bool DelSysMenuPurview(string Id)
 {
     using (ISysMenuPurviewBLL SysMenuPurviewBLL = BLLContainer.Resolve <ISysMenuPurviewBLL>())
     {
         try
         {
             SysMenuPurview item = SysMenuPurviewBLL.GetFirstOrDefault(Id);
             return(SysMenuPurviewBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
Exemple #3
0
 public bool DelSysMenuPurviews(string[] Ids)
 {
     using (ISysMenuPurviewBLL SysMenuPurviewBLL = BLLContainer.Resolve <ISysMenuPurviewBLL>())
     {
         try
         {
             List <SysMenuPurview> entitys = new List <SysMenuPurview>();
             foreach (string id in Ids)
             {
                 SysMenuPurview item = SysMenuPurviewBLL.GetFirstOrDefault(id);
                 entitys.Add(item);
             }
             return(SysMenuPurviewBLL.Delete(entitys));
         }
         catch { return(false); }
     }
 }