Exemple #1
0
 public bool DelSysPurview(string Id)
 {
     using (ISysPurviewBLL SysPurviewBLL = BLLContainer.Resolve <ISysPurviewBLL>())
     {
         try
         {
             SysPurview item = SysPurviewBLL.GetFirstOrDefault(Id);
             return(SysPurviewBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
Exemple #2
0
 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); }
     }
 }