コード例 #1
0
        public async Task <IActionResult> Get(string customerId)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var invoice = await _transactionProvider.GetAllTransactions(customerId);

            return(Ok(invoice));
        }
コード例 #2
0
        public async Task <IActionResult> Get(int customerId)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var dtOs = await _provider.GetAllTransactions(customerId);

            return(Ok(dtOs));
        }