public IHttpActionResult PostDispatchProgress(PalletDispatchProgress progress)
        {
            var terminal = TerminalServices.GetTerminalBySerial(progress.SerialNo);

            if (terminal == null)
            {
                return(Unauthorized());
            }

            var TransactionLog = TerminalServices.CheckTransactionLog(progress.TransactionLogId, terminal.TerminalId);

            if (TransactionLog == true)
            {
                return(Conflict());
            }

            var result = _palletService.UpdateDispatchProgress(progress, progress.CreatedBy);

            return(Ok(result));
        }