예제 #1
0
        public MarketQuotes MarketIndices()
        {
            var marketQuotes = _MarketRepository.GetMarkets();

            if (marketQuotes == null)
            {
                throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.NotFound));
            }
            return(marketQuotes);
        }
 public ActionResult GetMarketIndexes()
 {
     return(Json(_MarketRepository.GetMarkets(), JsonRequestBehavior.AllowGet));
 }