コード例 #1
0
        public ActionResult MenuBycomp(string viewname, int position = 0)
        {
            IList <MenuModels> model = MenuModels.GetTree(position);

            if (!string.IsNullOrWhiteSpace(viewname))
            {
                return(PartialView(viewname, model));
            }
            return(PartialView(model));
        }
コード例 #2
0
        public ActionResult MenuTop(int position = 1)
        {
            IList <MenuModels> model = MenuModels.GetTree(position);

            return(PartialView(model));
        }