public JsonResult GetChildList(string userid = "", bool type = false) { var list = M_UsersBusiness.GetUsersRelationList(userid == ""?CurrentUser.UserID:userid, type); JsonDictionary.Add("items", list); return(new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
public JsonResult UserInfoList(int type, bool orderby, string username, string userid, string accountmin, string accountmax, string clumon, string rebatemin, string rebatemax, int pageIndex, int pageSize, bool mytype = false) { int total = 0; int pageCount = 0; var list = M_UsersBusiness.GetUsersRelationList(pageSize, pageIndex, ref total, ref pageCount, string.IsNullOrEmpty(userid)?CurrentUser.UserID:userid, type, -1, username, clumon, orderby, rebatemin, rebatemax, accountmin, accountmax, mytype); JsonDictionary.Add("items", list); JsonDictionary.Add("totalCount", total); JsonDictionary.Add("pageCount", pageCount); return(new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }