API integration issue in .NET core framework. - C#