From dc233f9db90d283f3131a0185693bc48a8aee640 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 14 Apr 2017 14:44:08 -0400 Subject: Add Bug List --- Project-Unite/Controllers/BugsController.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Project-Unite/Controllers') diff --git a/Project-Unite/Controllers/BugsController.cs b/Project-Unite/Controllers/BugsController.cs index 5345239..34de971 100644 --- a/Project-Unite/Controllers/BugsController.cs +++ b/Project-Unite/Controllers/BugsController.cs @@ -15,5 +15,14 @@ namespace Project_Unite.Controllers var db = new ApplicationDbContext(); return View(db.BugTags); } + + public ActionResult ViewCategory(string id) + { + var db = new ApplicationDbContext(); + var cat = db.BugTags.FirstOrDefault(x => x.Id == id); + if (cat == null) + return new HttpStatusCodeResult(404); + return View(cat); + } } } \ No newline at end of file -- cgit v1.2.3