public string AssignModuleForUser(int userId, string moduleIds) { try { var ids = moduleIds.Split(',').Select(id => int.Parse(id)).ToArray(); _app.AssignModuleForUser(userId, ids); } catch (Exception e) { BjuiResponse.message = e.Message; BjuiResponse.statusCode = "300"; } return(JsonHelper.Instance.Serialize(BjuiResponse)); }