public IViewComponentResult Invoke()
        {
            var count = restaurantData.GetCount();

            return(View(count));
            //could use... return View("count", count);
        }
        public IViewComponentResult Invoke()
        {
            var count = restaurantData.GetCount();

            return(View(count));
        }
Пример #3
0
 public IViewComponentResult Invoke()
 {
     return(View(restaurantData.GetCount()));
 }