public async Task <FileContentResult> ScriptAsync(int id) { _logger.LogInformation($"Attempting to get script for schema version: {id}"); string fileName = $"{id}.sql"; return(File(await _scriptProvider.GetScriptAsBytesAsync(id, HttpContext.RequestAborted).ConfigureAwait(false), "application/sql", fileName)); }