//[CheckPermission] public JsonResult GetUsersGroup(string Name, string RoleID) { try { int intRoleID = Convert.ToInt32(RoleID); CSF_Users_DAO objUsersDAO = new CSF_Users_DAO(); List <CSF_Users_GetUsersNotInGroup_Result> listUser = objUsersDAO.GetUsersNotInGroup(Name, intRoleID).ToList(); //List user in group List <CSF_Users_GetUsersInGroup_Result> listUser1 = objUsersDAO.GetUsersInGroup(intRoleID).ToList(); var jsonResults = new { listUserNotInGroup = listUser, listUserInGroup = listUser1, status = true }; return(Json(jsonResults, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { SetAlert("Lỗi" + ex.Message.ToString(), AlertType.Error); Logs.WriteLog(ex); return(null); } }