Exemplo n.º 1
0
 public RmRepairRecord GetRmRepairRecordById(string Id)
 {
     using (IRmRepairRecordBLL RmRepairRecordBLL = BLLContainer.Resolve <IRmRepairRecordBLL>())
     {
         RmRepairRecord model = RmRepairRecordBLL.GetFirstOrDefault(Id);
         return(model);
     }
 }
Exemplo n.º 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); }
     }
 }
Exemplo n.º 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); }
     }
 }