Beispiel #1
0
 public void Execute(IJobExecutionContext context)
 {
     try
     {
         var result = productHandler.RegisterProduct(new CreateProducto()
         {
             CategoryId  = 4,
             Descripcion = "Un producto creado desde un Servico",
             Name        = "Producto - " + DateTime.Now
         });
         _log.Info("Registre un producto con id : " + result.Id);
     }
     catch (Exception e)
     {
         _log.Error(e);
     }
 }