public static List <Menu> GetUserShortcut(Guid userGuid) { UserShortcuts.Clear(); Business.UserSetting userSettingController = new Business.UserSetting(); DataTable dtServiceInfo = userSettingController.GetUserShortcutForLoad(userGuid); foreach (DataRow row in dtServiceInfo.Rows) { var menu = new Common.Menu { Title = row["Title"].ToString(), Path = "/PageLoader.aspx?c=" + Helper.Encrypt(row["ReferencePageKey"], HttpContext.Current.Session), SmallIcon = row["IconAddress"].ToString(), LargeIcon = row["LargeIcon"].ToString(), }; UserShortcuts.Add(menu); } return(UserShortcuts); }
public static DataTable GetUserShortcutForLoad(Guid userGuid) { Business.UserSetting userSettingController = new Business.UserSetting(); return(userSettingController.GetUserShortcutForLoad(userGuid)); }