show performer device usage

This commit is contained in:
Paul Schneider 2016-12-09 13:40:37 +01:00
commit 17935605c8
2 changed files with 9 additions and 3 deletions

View file

@ -48,7 +48,8 @@ namespace Yavsc.Controllers
a => a.Code == id);
return View(
_context.Performers.Include(p => p.Performer).Where
_context.Performers.Include(p => p.Performer)
.Include(p=>p.Performer.Devices).Where
(p => p.ActivityCode == id && p.Active).OrderBy(
x => x.MinDailyCost
)