public static String GetUser(String userName) { ClsLogistic log = new ClsLogistic(); ClsData DataJSon = new ClsData(); bool isAdmin = true; return(DataJSon.fGetJson(log.getUsers(isAdmin, userName))); }
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))); }