Beispiel #1
0
        public IActionResult RefreshAccount([Required] string accountId)
        {
            string clientId = Request.HttpContext.Items["ClientId"]?.ToString();

            return(_taskProcessor.RefreshAccount(clientId, accountId)
                                ? Json("Account is refreshing in the background") as IActionResult
                                : BadRequest());
        }