示例#1
0
        public IActionResult Index()
        {
            var vm = new IndexViewModel
            {
                StoryCount = trendService.GetTotalStoryCount()
            };

            return(View(vm));
        }
示例#2
0
 public ActionResult Index()
 {
     return(Ok(trendService.GetTotalStoryCount()));
 }