Exemplo n.º 1
0
        /// <summary>
        /// 获取支付码
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public async Task <IActionResult> GetPayCode(int id, [FromServices] ICardRepository service)
        {
            var payment = await service.CreatePaymentTargetAsync(id);

            return(Content(payment.Code));
        }