Esempio n. 1
0
        public ActionResult SearchByTicker(string id = "")
        {
            var x = _tickerService.GetTickerBySymbol(id);
            var securityName = x.Name;

            var buyAndHoldTransactionSearch = new BuyAndHoldTransactionSearch
            {
                SecurityName = securityName,
                BuyAndHoldTransactions = GetTransactions(id),
                TickerSymbols = GetTickerSymbols(),
                TickerSymbolsSelectListItem = GetTickerSymbolsSelectListItem()
            };
            return View("Search", buyAndHoldTransactionSearch);
        }
Esempio n. 2
0
 public ActionResult Search(int id)
 {
     var BuyAndHoldTransactionSearch = new BuyAndHoldTransactionSearch
     {
         BuyAndHoldTransactions = GetTransactions(id),
         TickerSymbols = GetTickerSymbols(),
         TickerSymbolsSelectListItem = GetTickerSymbolsSelectListItem()
     };
     return View(BuyAndHoldTransactionSearch);
 }