Пример #1
0
        public void TestMethod1()
        {
            var news = CnBeta.GetService <INews>();
            var list = news.GetNewsList().Result;
            var data = JsonConvert.SerializeObject(list);

            Console.WriteLine(data);
        }
Пример #2
0
        public async Task <IEnumerable <NewsBrief> > Get()
        {
            INews news = CnBeta.GetService <INews>();

            return(await news.GetNewsList());
        }