Exemple #1
0
 public SysPurview GetSysPurviewById(string Id)
 {
     using (ISysPurviewBLL SysPurviewBLL = BLLContainer.Resolve <ISysPurviewBLL>())
     {
         SysPurview model = SysPurviewBLL.GetFirstOrDefault(Id);
         return(model);
     }
 }
Exemple #2
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 #3
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); }
     }
 }