public ActionResult AddUsersToForm() { int adminID = Convert.ToInt32(Request.Form["adminID"]); int emailCount = Convert.ToInt32(Request.Form["emailCount"]); List <string> userEmails = new List <string>(); for (int count = 0; count < emailCount; count++) { string dataElementName = "email" + (count + 1); userEmails.Add(Request.Form[dataElementName]); } List <string> notFoundUsers = _sqlFormService.SendFormToUsers(userEmails, adminID); return(Json(notFoundUsers)); }