Example #1
0
 public String HasProject()
 {
     PermissionButtons gc = new PermissionButtons();
     String pro=gc.HasProject();
        if (pro.Equals("NULL") || pro.Equals("")) {
        HttpContext.Current.Response.Redirect("/Home/index");
        }
        return "";
 }
Example #2
0
 public String DrawMenuActions2(String idMenu)
 {
     PermissionButtons gc = new PermissionButtons();
     IList<String> buttons = gc.LoadMenuActionsUserProjects(idMenu);
     String htmlButtons = "";
     foreach (String button in buttons)
     {
         if (!String.IsNullOrEmpty(button))
         {
             htmlButtons += "<td>" + button + "</td>";
         }
     }
     if (String.IsNullOrEmpty(htmlButtons))
     {
         HttpContext.Current.Response.Redirect("/Home/index");
     }
     return htmlButtons;
 }