Пример #1
0
 public void ProductCodeCrossReferenceUpdate(ProductCodeCrossReferenceDto dto)
 {
     try
     {
         using (var db = new ONRRDatabaseEntities())
         {
             db.ProductCodeCrossReferenceUpdate(dto.ProductCodeID, dto.ONRRProductCode, dto.QRAMajorProductCode);
         }
     }
     catch (Exception ex)
     {
         log.Error(ex.Message + Environment.NewLine + ex.StackTrace);
         throw;
     }
 }
Пример #2
0
 public void ProductCodeCrossReferenceCreate(ProductCodeCrossReferenceDto dto)
 {
     try
     {
         using (var db = new ONRRDatabaseEntities())
         {
             var newId = new ObjectParameter("newId", 0);
             var id    = db.ProductCodeCrossReferenceInsert(dto.ONRRProductCode, dto.QRAMajorProductCode, newId);
         }
     }
     catch (Exception ex)
     {
         log.Error(ex.ToString());
         throw;
     }
 }