Example #1
0
 public bool DelPmPlanMaster(string Id)
 {
     using (IPmPlanMasterBLL PmPlanMasterBLL = BLLContainer.Resolve <IPmPlanMasterBLL>())
     {
         try
         {
             PmPlanMaster item = PmPlanMasterBLL.GetFirstOrDefault(Id);
             return(PmPlanMasterBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
Example #2
0
 public bool DelPmPlanMasters(string[] Ids)
 {
     using (IPmPlanMasterBLL PmPlanMasterBLL = BLLContainer.Resolve <IPmPlanMasterBLL>())
     {
         try
         {
             List <PmPlanMaster> entitys = new List <PmPlanMaster>();
             foreach (string id in Ids)
             {
                 PmPlanMaster item = PmPlanMasterBLL.GetFirstOrDefault(id);
                 entitys.Add(item);
             }
             return(PmPlanMasterBLL.Delete(entitys));
         }
         catch { return(false); }
     }
 }