public async Task <ActionResult> UpdateCustomerInvoicePayment(uint id, [FromBody] UpdateCustomerInvoiceCommand command)
        {
            var result = await _Mediator.Send(command);

            return(StatusCode(204));
        }
        public async Task<ActionResult<CustomerOrderInvoiceDetail>> UpdateCustomerInvoice (uint id, [FromBody] UpdateCustomerInvoiceCommand updatedInvoice) {

            var result = await _Mediator.Send (updatedInvoice);

            return StatusCode (204);

        }