This commit is contained in:
Paul Schneider 2017-01-16 15:34:05 +01:00
commit fbde7a525f
16 changed files with 113 additions and 11 deletions

View file

@ -101,11 +101,13 @@ namespace Yavsc.Controllers
_context.Estimates
.Add(estimate);
_context.SaveChanges();
var query = _context.BookQueries.FirstOrDefault(
q=>q.Id == estimate.CommandId
);
var perfomerProfile = _context.Performers
.Include(
perpr => perpr.Performer).FirstOrDefault(
x=>x.PerformerId == estimate.Query.PerformerId
x=>x.PerformerId == query.PerformerId
);
var command = _context.BookQueries.FirstOrDefault(
cmd => cmd.Id == estimate.CommandId

View file

@ -120,5 +120,30 @@ namespace Yavsc.Controllers
throw new Exception("No data");
return View("Estimate.pdf",estimate);
}
[Authorize]
public IActionResult EstimateProValidation()
{
throw new NotImplementedException();
}
[Authorize]
public IActionResult EstimateClientValidation()
{
throw new NotImplementedException();
}
[Authorize]
public IActionResult BillValidation()
{
throw new NotImplementedException();
}
[Authorize]
public IActionResult BillAcquitment()
{
throw new NotImplementedException();
}
}
}