예제 #1
0
        public ActionResult SentForms()
        {
            int adminID = Convert.ToInt32(Request.Form["userID"]);

            List <FormModel> adminForms = _sqlFormService.GetAllFormsForAdmin(adminID);

            foreach (var form in adminForms)
            {
                form.questionList = _sqlFormService.GetallQuestionForForm(form.FormID);
            }

            return(Json(adminForms));
        }