restores the bill

This commit is contained in:
2017-06-08 11:08:33 +02:00
parent a73744bd47
commit 7296f7177d
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;
}