summaryrefslogtreecommitdiff
path: root/Project-Unite/Controllers
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-22 11:42:05 -0400
committerMichael <[email protected]>2017-05-22 11:42:05 -0400
commit15f1eef6f2e24ce6ef1ea0317845293329dbb189 (patch)
treeef4da701a8be365ee2e19fd3e604c771543401a4 /Project-Unite/Controllers
parentba7bfaabc530efd23e327fb3eb61ca72027384d1 (diff)
downloadproject-unite-15f1eef6f2e24ce6ef1ea0317845293329dbb189.tar.gz
project-unite-15f1eef6f2e24ce6ef1ea0317845293329dbb189.tar.bz2
project-unite-15f1eef6f2e24ce6ef1ea0317845293329dbb189.zip
slight devcp ui revamp
Diffstat (limited to 'Project-Unite/Controllers')
-rw-r--r--Project-Unite/Controllers/DeveloperController.cs12
1 files changed, 4 insertions, 8 deletions
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()