Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public static async Task<IActionResult> Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "timezones")]HttpRequest req, ILogger log)
var serviceProvider = Bootstrap.ConfigureServices();
log.LogInformation("GET TIMEZONES");
var timeZoneService = ServiceProvider.GetService<ITimeZoneService>();
var timeZones = await timeZoneService.GetTimeZones().ConfigureAwait(false);
return new OkObjectResult(timeZones ?? new List<string>());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.