Beispiel #1
0
        public string AccessRoles(int userId, string ids)
        {
            var roleids = JsonHelper.Instance.Deserialize <int[]>(ids);

            _app.AccessRole(userId, roleids);
            return(JsonHelper.Instance.Serialize(BjuiResponse));
        }
Beispiel #2
0
        public string AccessRoles(int userId, string ids)
        {
            var roleids = ids.Split(',').Select(id => int.Parse(id)).ToArray();

            _app.AccessRole(userId, roleids);
            return(JsonHelper.Instance.Serialize(BjuiResponse));
        }