public String HasProject() { PermissionButtons gc = new PermissionButtons(); String pro=gc.HasProject(); if (pro.Equals("NULL") || pro.Equals("")) { HttpContext.Current.Response.Redirect("/Home/index"); } return ""; }
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; }