Exemple #1
0
 public bool DelRsLine(string Id)
 {
     using (IRsLineBLL RsLineBLL = BLLContainer.Resolve <IRsLineBLL>())
     {
         try
         {
             RsLine item = RsLineBLL.GetFirstOrDefault(Id);
             return(RsLineBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
Exemple #2
0
 public bool DelRsLines(string[] Ids)
 {
     using (IRsLineBLL RsLineBLL = BLLContainer.Resolve <IRsLineBLL>())
     {
         try
         {
             List <RsLine> entitys = new List <RsLine>();
             foreach (string id in Ids)
             {
                 RsLine item = RsLineBLL.GetFirstOrDefault(id);
                 entitys.Add(item);
             }
             return(RsLineBLL.Delete(entitys));
         }
         catch { return(false); }
     }
 }