mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 13:07:34 +00:00
Tiny bug with viewrelease.
This commit is contained in:
parent
04fdad73bd
commit
b3033a5608
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ namespace Project_Unite.Controllers
|
||||||
public ActionResult ViewRelease(string id)
|
public ActionResult ViewRelease(string id)
|
||||||
{
|
{
|
||||||
var db = new ApplicationDbContext();
|
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)
|
if (release == null)
|
||||||
return new HttpStatusCodeResult(404);
|
return new HttpStatusCodeResult(404);
|
||||||
return View(release);
|
return View(release);
|
||||||
|
|
Loading…
Add table
Reference in a new issue