public JsonResult GetUsersByProjects(List <int> projectIds) { if (projectIds != null && projectIds.Count > 0) { List <ApplicationUser> UserList = new List <ApplicationUser>(); foreach (var projectId in projectIds) { UserList.AddRange(projectHelper.ListUsersOnProject(projectId).Except(UserList)); } List <HomeUserTable> response = CreateHomeUserTable(UserList); return(Json(response)); } else { return(Json(null)); } }