Beispiel #1
0
        public IViewComponentResult Invoke(string path, int w, int b)
        {
            var result = _bandSer.GetListItems();

            ViewData["link"]   = RouteHelper.CurrentRouter(path, 0, w);
            ViewData["active"] = b;
            return(View(result));
        }
Beispiel #2
0
        public IViewComponentResult Invoke(string path, int b, int w)
        {
            var result = (List <Wire>)_wireSer.GetListItems();

            ViewData["link"]   = RouteHelper.CurrentRouter(path, b, 0);
            ViewData["active"] = result.Find(item => item.Id == w)?.Name ?? "";
            return(View(result));
        }