summaryrefslogtreecommitdiff
path: root/Project-Unite/Controllers
diff options
context:
space:
mode:
Diffstat (limited to 'Project-Unite/Controllers')
-rw-r--r--Project-Unite/Controllers/BugsController.cs9
1 files changed, 9 insertions, 0 deletions
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