public void UpdateProductsFromStatus(int? oldStatusId, int? newStatusId)

        {
            SalesOrderStatusEnum oldStatus = SalesOrderStatusEnum.None;
            SalesOrderStatusEnum newStatus = SalesOrderStatusEnum.None;

            if (newStatusId.HasValue)
            {
                newStatus = (SalesOrderStatusEnum)newStatusId.Value;
            }
            if (oldStatusId.HasValue)
            {
                oldStatus = (SalesOrderStatusEnum)oldStatusId.Value;
            }
            UpdateProductsFromStatus(oldStatus, newStatus);

        }