Fix url redirect bug

This commit is contained in:
Michael 2017-04-16 15:15:25 -04:00
parent efc9acb106
commit bb99c5044e

View file

@ -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 });
}
}
}