public IActionResult CreateQuestion(int testId) { int questionId = repository.CreateTestQuestion(testId); return(RedirectToAction(nameof(EditQuestion), new { testId = testId, questionId = questionId })); }