Добавил небольшой пример кода в мой ответ на вопрос.
в CreateTest, безуспешно, я хочу перенаправить на тесты из CreateTest.
Я хочу сделать что-то вроде следующего:
public ActionResult Tests(int ID, string projectName)
{
TestModel model = new TestModel (ID, projectName);
return View(model);
}
[HttpPost]
public ActionResult CreateTest(TestModel model)
{
try
{
return RedirectToAction("Tests");
}
catch (Exception e)
{
ModelState.AddModelError("Error", e.Message);
return View(model);
}
}