summaryrefslogtreecommitdiff
path: root/Project-Unite/Controllers
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-14 14:44:08 -0400
committerMichael <[email protected]>2017-04-14 14:44:08 -0400
commitdc233f9db90d283f3131a0185693bc48a8aee640 (patch)
treebe9af14ee016794267116d71f5dc60658c71576d /Project-Unite/Controllers
parent52245ffb86b6d1585c4e4c82e6bf1b3c03c8846a (diff)
downloadproject-unite-dc233f9db90d283f3131a0185693bc48a8aee640.tar.gz
project-unite-dc233f9db90d283f3131a0185693bc48a8aee640.tar.bz2
project-unite-dc233f9db90d283f3131a0185693bc48a8aee640.zip
Add Bug List
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