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)); }
public ActionResult MenuTop(int position = 1) { IList <MenuModels> model = MenuModels.GetTree(position); return(PartialView(model)); }