From c36de9cdc1235849488503fac425a7be3ad533e7 Mon Sep 17 00:00:00 2001 From: Thomas Hounsell Date: Fri, 12 Dec 2014 11:29:08 +0000 Subject: [PATCH] Redirect to info page after edit/create --- Controllers/buildController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controllers/buildController.cs b/Controllers/buildController.cs index ebf2672..11be986 100644 --- a/Controllers/buildController.cs +++ b/Controllers/buildController.cs @@ -110,7 +110,7 @@ public ActionResult create(Build build) { return View(build); } - return RedirectToAction("index"); + return RedirectToAction("info", new { id = build.Id }); } else { @@ -144,7 +144,7 @@ public ActionResult edit(long id, Build build) return View(); } - return RedirectToAction("index"); + return RedirectToAction("info", new { id = build.Id }); } else {