public bool DelPmPlanMaster(string Id) { using (IPmPlanMasterBLL PmPlanMasterBLL = BLLContainer.Resolve <IPmPlanMasterBLL>()) { try { PmPlanMaster item = PmPlanMasterBLL.GetFirstOrDefault(Id); return(PmPlanMasterBLL.Delete(item)); } catch { return(false); } } }
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); } } }