From 15f1eef6f2e24ce6ef1ea0317845293329dbb189 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 22 May 2017 11:42:05 -0400 Subject: slight devcp ui revamp --- Project-Unite/Controllers/DeveloperController.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Project-Unite/Controllers') diff --git a/Project-Unite/Controllers/DeveloperController.cs b/Project-Unite/Controllers/DeveloperController.cs index cbe1436..b635a21 100644 --- a/Project-Unite/Controllers/DeveloperController.cs +++ b/Project-Unite/Controllers/DeveloperController.cs @@ -14,9 +14,9 @@ namespace Project_Unite.Controllers public class DeveloperController : Controller { // GET: Developer - public ActionResult Index() + public ActionResult Index(string id = "home") { - ViewBag.Developer = true; + ViewBag.Page = id; return View(); } @@ -51,8 +51,7 @@ namespace Project_Unite.Controllers public ActionResult Releases() { - var db = new ApplicationDbContext(); - return View(db.Downloads); + return RedirectToAction("Index", new { id = "releases" }); } public ActionResult AddRelease() @@ -154,10 +153,7 @@ namespace Project_Unite.Controllers [Authorize] public ActionResult Wiki() { - ViewBag.Developer = true; - var db = new ApplicationDbContext(); - var cats = db.WikiCategories; - return View(cats); + return RedirectToAction("Index", new { id = "wiki" }); } public ActionResult AddWikiCategory() -- cgit v1.2.3