示例#1
0
 public RmRepairRecord GetRmRepairRecordById(string Id)
 {
     using (IRmRepairRecordBLL RmRepairRecordBLL = BLLContainer.Resolve <IRmRepairRecordBLL>())
     {
         RmRepairRecord model = RmRepairRecordBLL.GetFirstOrDefault(Id);
         return(model);
     }
 }
示例#2
0
 public bool DelRmRepairRecord(string Id)
 {
     using (IRmRepairRecordBLL RmRepairRecordBLL = BLLContainer.Resolve <IRmRepairRecordBLL>())
     {
         try
         {
             RmRepairRecord item = RmRepairRecordBLL.GetFirstOrDefault(Id);
             return(RmRepairRecordBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
示例#3
0
 public bool DelRmRepairRecords(string[] Ids)
 {
     using (IRmRepairRecordBLL RmRepairRecordBLL = BLLContainer.Resolve <IRmRepairRecordBLL>())
     {
         try
         {
             List <RmRepairRecord> entitys = new List <RmRepairRecord>();
             foreach (string id in Ids)
             {
                 RmRepairRecord item = RmRepairRecordBLL.GetFirstOrDefault(id);
                 entitys.Add(item);
             }
             return(RmRepairRecordBLL.Delete(entitys));
         }
         catch { return(false); }
     }
 }