public HttpResponseMessage PaymentByAccount(UpdateAccountTenderModel tenderModel)
        {
            var dateStart = DateTime.Now;

            _performancelog.Debug($"Start,PaymentController,PaymentByAccount,{string.Empty},{dateStart:hh.mm.ss.ffffff}");

            ErrorMessage        errorMessage;
            string              userCode;
            HttpResponseMessage httpResponseMessage;

            if (GetUserCode(out userCode, out httpResponseMessage))
            {
                return(httpResponseMessage);
            }
            var updatedTenders = _paymentManager.ByAccount(tenderModel.SaleNumber,
                                                           tenderModel.TillNumber, tenderModel.TransactionType,
                                                           tenderModel.Tender.AmountEntered.HasValue ? tenderModel.Tender.AmountEntered.ToString() : null,
                                                           tenderModel.TillClose, tenderModel.Tender.TenderCode, userCode, tenderModel.PurchaseOrder,
                                                           tenderModel.OverrideArLimit, out errorMessage);

            if (!string.IsNullOrEmpty(errorMessage.MessageStyle.Message))
            {
                return(Request.CreateResponse(errorMessage.StatusCode, new ErrorResponse
                {
                    Error = errorMessage.MessageStyle
                }));
            }

            TenderSummaryModel tenderSummary = GetTenderSummary(updatedTenders);

            _performancelog.Debug($"End,PaymentController,PaymentByAccount,{DateTime.Now.Subtract(dateStart).TotalMilliseconds},{DateTime.Now:hh.mm.ss.ffffff}");

            return(Request.CreateResponse(HttpStatusCode.OK, tenderSummary));
        }