public ActionResult MenuDefault(bool check) { var ltsSourceModule = IsAdmin ? _dnModuleApi.GetAllListSimpleItems(UserItem.AgencyID) : _dnModuleApi.GetAllModuleByUserName(UserItem.UserId, UserItem.AgencyID); var list = SystemActionItem.IsAdmin ? ltsSourceModule : GetLeftMenu(ltsSourceModule); var module = new ModelModuleadminItem { check = check, ListItem = list.Where(m => m.PrarentID == 1), }; return(PartialView(module)); }
public void GetTitle(int id) { var list = _dnModuleApi.GetAllListSimpleItems(UserItem.AgencyID); Title = list.Where(m => m.ID == id).Select(m => m.NameModule).FirstOrDefault(); }