// GET: Responses/Create public ActionResult Create(int?examId) { if (examId == null || _service.FindExam(examId.Value) == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var response = _service.PrepareNewResponse(examId.Value); return(View(response)); }