Hello world!

Welcome to my blog. This is just an example post I created to fill some space, until I create real posts.

public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";

            string order = context.Request["order"];
            if(!String.IsNullOrEmpty(order))
            {
                PurchaseOrder pOrder = PurchaseOrder.All().Where(o => o.OrderNumber == order).FirstOrDefault();
                if(pOrder == null)
                {
                    context.Response.Write($"Unable to find order number '{order}'.");
                }
                else
                {
                    RoundingService _roundingService = new RoundingService(new UCommerce.Settings.PriceCalculationSettings());
                    Log.Debug("Manual generate and send the EDI 850 document");
                    // Generate and send the EDI 850 document
                    var pop = new PurchaseOrderProcessor(pOrder, _roundingService);
                    pop.Process();
                    Log.Debug("Finish manual generate and send the EDI 850 document");
                    context.Response.Write("Generation complete.");
                }
            }
            else
            {
                context.Response.Write("Missing order number.");
            }
        }

//This is a comment.
let foo = "bar";
const bar = "foo";
foo = 68.0;
let myFunction = function() { console.log(bar); }

Leave a comment

Your email address will not be published. Required fields are marked *