From bb99c5044e092b9b19c1647542a9f71e5ad45100 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 16 Apr 2017 15:15:25 -0400 Subject: [PATCH] Fix url redirect bug --- Project-Unite/Controllers/SkinsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project-Unite/Controllers/SkinsController.cs b/Project-Unite/Controllers/SkinsController.cs index e2ad80d..d503100 100644 --- a/Project-Unite/Controllers/SkinsController.cs +++ b/Project-Unite/Controllers/SkinsController.cs @@ -79,7 +79,7 @@ public ActionResult PostSkin(CreateSkinViewModel model) } db.Skins.Add(skin); db.SaveChanges(); - return RedirectToAction("ViewSkin", new { id = skin.Name }); + return RedirectToAction("ViewSkin", new { id = skin.Id }); } } } \ No newline at end of file