public ActionResult ManageHouseholdUsers(List <int> households, string HeadOfHouseholdId) { //Remove users from selected projects if (households != null) { foreach (var householdId in households) { foreach (var user in helper.UsersOnHousehold(householdId).ToList()) { helper.RemoveUserFromHousehold(user.Id, householdId); } if (!string.IsNullOrEmpty(HeadOfHouseholdId)) { helper.AddUserToHousehold(HeadOfHouseholdId, householdId); } } } return(RedirectToAction("ManageHouseholdUsers")); }