Troubleshooting ViewRelease...

This commit is contained in:
Michael 2017-04-05 21:25:29 -04:00
parent 78a672ed69
commit aa29df784e

View file

@ -20,8 +20,7 @@ namespace Project_Unite.Controllers
{
var db = new ApplicationDbContext();
var release = db.Downloads.FirstOrDefault(x => x.Id == id);
if (release == null)
return new HttpStatusCodeResult(404);
return View(release);
}
}