private static async Task PostRun(TreasureEntities context, IMapper mapper) { await context.SaveChangesAsync(); var timestamp = DateTimeOffset.UtcNow; await CacheBuilder.BuildCache <Unit, UnitStubModel>(context, mapper, CacheItemType.Unit, timestamp); await CacheBuilder.BuildCache <Stage, StageStubModel>(context, mapper, CacheItemType.Stage, timestamp); await CacheBuilder.BuildCache <Ship, ShipStubModel>(context, mapper, CacheItemType.Ship, timestamp); }