public void GetMenu(HttpContext context) { List <Menu> list = new RoleCompetenceManager().GetAllMenu(GetUser(context).RoleId); string strTxt = Json.ListToJson(list); context.Response.Write(strTxt); }
public void GetCompetence(HttpContext context) { List <Competence> List = new RoleCompetenceManager().GetAllCompetence(); string StrTxt = Json.ListToJson(List); context.Response.Write(StrTxt); }