예제 #1
0
        public async Task <IActionResult> CheckFunds(string walletdigits)
        {
            var response = new APIResponse();

            var(entity, message) = await _walletManager.CheckFunds(walletdigits);

            if (entity != null)
            {
                response.Result     = entity;
                response.ApiMessage = message;
                response.StatusCode = "00";
                return(Ok(response));
            }
            response.ApiMessage = message;
            response.Result     = entity;

            return(NotFound(response));
        }