コード例 #1
0
        public async Task <ActionResult> MyExam(FormCollection collection)
        {
            var examqstAns = Request.Form["exam"];
            var result     = await services.SubmitExamAnswers(examqstAns);

            if (result)
            {
                return(RedirectToAction("Index", "Home"));
            }

            return(RedirectToAction("MyExam"));
        }