Пример #1
0
        public IActionResult GetCategoryNav([FromServices] GetCategoryMenu getCategoryMenu)
        {
            var categorymenu = getCategoryMenu.Action();

            return(PartialView("Components/CategoryMenu/Default", categorymenu));
        }
 public IViewComponentResult Invoke(string view = "Default")
 {
     return(View(view, _getCategoryMenu.Action()));
 }