summaryrefslogtreecommitdiff
path: root/Project-Unite/Controllers/DownloadController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Project-Unite/Controllers/DownloadController.cs')
-rw-r--r--Project-Unite/Controllers/DownloadController.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Project-Unite/Controllers/DownloadController.cs b/Project-Unite/Controllers/DownloadController.cs
index 58e3c36..fc03f2b 100644
--- a/Project-Unite/Controllers/DownloadController.cs
+++ b/Project-Unite/Controllers/DownloadController.cs
@@ -15,5 +15,14 @@ namespace Project_Unite.Controllers
var db = new ApplicationDbContext();
return View(db.Downloads);
}
+
+ public ActionResult ViewRelease(string id)
+ {
+ var db = new ApplicationDbContext();
+ var release = db.Downloads.Where(x => x.Id == id);
+ if (release == null)
+ return new HttpStatusCodeResult(404);
+ return View(release);
+ }
}
} \ No newline at end of file