WIP estimate tex

This commit is contained in:
Paul Schneider 2016-11-03 17:34:19 +01:00
commit 4abf8db596
5 changed files with 155 additions and 31 deletions

View file

@ -32,7 +32,10 @@ namespace Yavsc.Controllers
public IActionResult Index()
{
var uid = User.GetUserId();
return View(_context.Estimates.Where(
return View(_context.Estimates.Include(e=>e.Query)
.Include(e=>e.Query.PerformerProfile)
.Include(e=>e.Query.PerformerProfile.Performer)
.Where(
e=>e.OwnerId == uid || e.ClientId == uid
).ToList());
}