public ActionResult AddForm() { int adminID = Convert.ToInt32(Request.Form["adminID"]); string formTitle = Request.Form["questionTitle"]; _sqlFormService.CreateForm(adminID, formTitle); int questionCount = Convert.ToInt32(Request.Form["questionCount"]); List <string> questions = new List <string>(); for (int count = 0; count < questionCount; count++) { string questionID = "question" + count; string questionText = Request.Form[questionID]; questions.Add(questionText); _sqlFormService.AddQuestion(questionText, adminID); } return(Json("Success")); }