示例#1
0
 public bool DelRsMaintainStandards(string Id)
 {
     using (IRsMaintainStandardsBLL RsMaintainStandardsBLL = BLLContainer.Resolve <IRsMaintainStandardsBLL>())
     {
         try
         {
             RsMaintainStandards item = RsMaintainStandardsBLL.GetFirstOrDefault(Id);
             return(RsMaintainStandardsBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
示例#2
0
 public bool DelRsMaintainStandardss(string[] Ids)
 {
     using (IRsMaintainStandardsBLL RsMaintainStandardsBLL = BLLContainer.Resolve <IRsMaintainStandardsBLL>())
     {
         try
         {
             List <RsMaintainStandards> entitys = new List <RsMaintainStandards>();
             foreach (string id in Ids)
             {
                 RsMaintainStandards item = RsMaintainStandardsBLL.GetFirstOrDefault(id);
                 entitys.Add(item);
             }
             return(RsMaintainStandardsBLL.Delete(entitys));
         }
         catch { return(false); }
     }
 }