public static bool Alert(MenuAlert alert)
 {
     try
     {
         var list = HttpContext.Current.Session["Notifications"] as  List <MenuAlert>;
         list.Add(alert);
         HttpContext.Current.Session["Notifications"] = list;
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
 public static bool Alert(string text)
 {
     try
     {
         var       list = HttpContext.Current.Session["Notifications"] as List <MenuAlert>;
         MenuAlert n    = new MenuAlert();
         n.Name = HttpContext.Current.User.Identity.Name;
         n.Text = text;
         list.Add(n);
         HttpContext.Current.Session["Notifications"] = list;
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }