//
        // GET: /StockTransactions/AddSell

        public ActionResult AddSell()
        {
            var brokerageAccountList = BrokerageAccountService.GetBrokerageAccountListForActiveUser();

            // Does the active user have any brokerage accounts setup?
            if (!brokerageAccountList.Any())
            {
                this.FlashError("Please ensure a brokerage account is setup and try again.", "Index", "BrokerageAccounts");
                return(RedirectToAction("Index", "BrokerageAccounts", new { area = "" }));
            }

            ViewBag.BrokerageAccountId = new SelectList(brokerageAccountList, "Id", "Title");

            var stockList = PurchaseTransactionService.GetStocksWithOpenPositionsForBrokerageAccount(brokerageAccountList.First().Id);

            ViewBag.SecurityId = new SelectList(stockList, "Id", "Title");

            return(View());
        }