public StockContract GetStockHistory(long StockID) { StockContract retunrobject = new StockContract(); retunrobject.StockHistory = StockRepo.GetStockHistory(StockID).ToList(); return(retunrobject); }