Tiny bug with viewrelease.

This commit is contained in:
Michael 2017-04-05 21:04:05 -04:00
parent 04fdad73bd
commit b3033a5608

View file

@ -19,7 +19,7 @@ namespace Project_Unite.Controllers
public ActionResult ViewRelease(string id)
{
var db = new ApplicationDbContext();
var release = db.Downloads.Where(x => x.Id == id);
var release = db.Downloads.FirstOrDefault(x => x.Id == id);
if (release == null)
return new HttpStatusCodeResult(404);
return View(release);