Ejemplo n.º 1
0
    public static String GetUser(String userName)
    {
        ClsLogistic log      = new ClsLogistic();
        ClsData     DataJSon = new ClsData();

        bool isAdmin = true;

        return(DataJSon.fGetJson(log.getUsers(isAdmin, userName)));
    }
Ejemplo n.º 2
0
    public static String GetGridData()
    {
        ClsLogistic log      = new ClsLogistic();
        ClsData     DataJSon = new ClsData();

        MembershipUser currentUser = Membership.GetUser();
        string         user        = currentUser.UserName.ToString();
        bool           isAdmin     = HttpContext.Current.Session["Profile"].ToString() == "1" ? false : true;

        return(DataJSon.fGetJson(log.getUsers(isAdmin, user)));
    }