public async Task <ActionResult <bool> > ChangePayRunInvoiceStatus([FromServices] IChangePayRunInvoiceStatusUseCase useCase, Guid id, Guid invoiceId, InvoiceStatus newStatus)
        {
            var res = await useCase.ExecuteAsync(id, invoiceId, newStatus);

            return(Ok(res));
        }
        public async Task <ActionResult <HeldInvoiceFlatResponse> > ReleaseHeldInvoice([FromServices] IChangePayRunInvoiceStatusUseCase useCase, Guid payRunId, Guid payRunInvoiceId)
        {
            var res = await useCase.ReleaseInvoiceAsync(payRunId, payRunInvoiceId);

            return(Ok(res));
        }