예제 #1
0
        public async Task <IActionResult> FundWallet(FundWalletModel model)
        {
            var response = new APIResponse();

            var(entity, message) = await _walletManager.FundWallet(model);

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

            return(BadRequest(response));
        }