restores the bill

This commit is contained in:
Paul Schneider 2017-06-08 11:08:33 +02:00
commit c8223c17ae
6 changed files with 23 additions and 19 deletions

View file

@ -42,8 +42,7 @@ namespace Yavsc.Services
public async Task<IBillable> GetBillAsync(string billingCode, long queryId)
{
var dbFunc = Startup.Billing[billingCode];
IBillable query = null;
await Task.Run(()=> dbFunc(DbContext, queryId));
IBillable query = await Task.Run(()=> dbFunc(DbContext, queryId));
return query;
}