Esempio n. 1
0
        public async Task <IActionResult> Get([FromRoute] string id)
        {
            TransactionResultQuery result = null;

            try
            {
                result = await _paymentProvider.GetDetailsOfPayment(id);
            }
            catch (CosmosException exception)
            {
                if (exception.StatusCode == System.Net.HttpStatusCode.NotFound)
                {
                    return(NotFound("Not found"));
                }
            }

            return(Ok(result));
        }