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)); }
public IViewComponentResult Invoke() { return(View(restaurantData.GetCount())); }