Пример #1
0
        public async Task Buy(int stockId, int sharesCount, decimal maxShareValue)
        {
            var authenticator = _authenticatorProvider.Provide(HttpContext);
            var account       = await _accountService.GetAccountByEmail("*****@*****.**");

            await _stockService.BuyShares(account.Id, stockId, sharesCount, maxShareValue);
        }