diff options
| author | Michael <[email protected]> | 2017-04-14 14:44:08 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-14 14:44:08 -0400 |
| commit | dc233f9db90d283f3131a0185693bc48a8aee640 (patch) | |
| tree | be9af14ee016794267116d71f5dc60658c71576d /Project-Unite/Controllers/BugsController.cs | |
| parent | 52245ffb86b6d1585c4e4c82e6bf1b3c03c8846a (diff) | |
| download | project-unite-dc233f9db90d283f3131a0185693bc48a8aee640.tar.gz project-unite-dc233f9db90d283f3131a0185693bc48a8aee640.tar.bz2 project-unite-dc233f9db90d283f3131a0185693bc48a8aee640.zip | |
Add Bug List
Diffstat (limited to 'Project-Unite/Controllers/BugsController.cs')
| -rw-r--r-- | Project-Unite/Controllers/BugsController.cs | 9 |
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 |
