ASP.NET Core Web API - how to consume third-party API based on condition

welcome to shbcf.ru