mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-04-21 00:30:23 +00:00
Troubleshooting ViewRelease...
This commit is contained in:
parent
78a672ed69
commit
aa29df784e
1 changed files with 1 additions and 2 deletions
|
@ -20,8 +20,7 @@ namespace Project_Unite.Controllers
|
||||||
{
|
{
|
||||||
var db = new ApplicationDbContext();
|
var db = new ApplicationDbContext();
|
||||||
var release = db.Downloads.FirstOrDefault(x => x.Id == id);
|
var release = db.Downloads.FirstOrDefault(x => x.Id == id);
|
||||||
if (release == null)
|
|
||||||
return new HttpStatusCodeResult(404);
|
|
||||||
return View(release);
|
return View(release);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue