コード例 #1
0
        /// GET: /Billing/CreateInvoice
        /// <summary>
        /// Creates an invoice record in the database by Order ID.
        /// </summary>
        /// <param name="orderId">Order ID.</param>
        public async Task <IActionResult> CreateInvoice(long orderId)
        {
            await _billingService.CreateInvoiceByOrderIdAsync(orderId);

            return(RedirectToAction(nameof(Index)));
        }