This commit is contained in:
2016-11-24 01:01:41 +01:00
parent f62b3d5ca6
commit d99e9b209f
16 changed files with 1209 additions and 34 deletions

View File

@ -1,7 +1,6 @@
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
using Microsoft.Data.Entity;
using Yavsc.Models;
@ -17,7 +16,7 @@ namespace Yavsc.ViewComponents
{
this.dbContext = dbContext;
}
public async Task<IViewComponentResult> InvokeAsync(long id, bool toPdf = false)
public IViewComponentResult InvokeAsync(long id, bool toPdf = false)
{
Estimate estimate =
dbContext.Estimates.Include(x => x.Query)