summaryrefslogtreecommitdiff
path: root/Project-Unite/Models/Download.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-14 18:35:45 -0400
committerMichael <[email protected]>2017-04-14 18:35:45 -0400
commitefc9acb1061eff647dc86bf7c9fcbad4bf14f3b2 (patch)
tree65fadc9957213ef182d83e09e59addfd1a8a4e00 /Project-Unite/Models/Download.cs
parent4fd744368c821da0c151672549c110560f8e1e33 (diff)
downloadproject-unite-efc9acb1061eff647dc86bf7c9fcbad4bf14f3b2.tar.gz
project-unite-efc9acb1061eff647dc86bf7c9fcbad4bf14f3b2.tar.bz2
project-unite-efc9acb1061eff647dc86bf7c9fcbad4bf14f3b2.zip
Show bugs on release pages
Diffstat (limited to 'Project-Unite/Models/Download.cs')
-rw-r--r--Project-Unite/Models/Download.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Project-Unite/Models/Download.cs b/Project-Unite/Models/Download.cs
index 69de79e..545e4ff 100644
--- a/Project-Unite/Models/Download.cs
+++ b/Project-Unite/Models/Download.cs
@@ -12,6 +12,15 @@ namespace Project_Unite.Models
[Required]
public string Id { get; set; }
+ public Bug[] OpenBugs
+ {
+ get
+ {
+ return new ApplicationDbContext().Bugs.Where(x => x.ReleaseId == this.Id && x.Open == true).ToArray();
+ }
+ }
+
+
[Required]
public string Name { get; set; }