I have a url saved in the database. Now, i have another url that need to be called for login.
the table structure as below:
id | url | createby
1 | https://getvalue.example.com | user1
Login url : https://login.example.com
Url saved in database : https://getvalue.example.com
I want to replace the 'getvalue' word with 'login'. But i dont want to update the login url in the database. The url in the database must remain as https://getvalue.example.com.
Below is my code:
public override async Task<Data> Retrieve(AdminTable admin)
{
string login = "login";
string getvalue = "getvalue
//here should call https://login.example.com url
UriBuilder urlLog = new UriBuilder(admin.url + "/fetchData ")
using (Httpclient clientLog = new Httpclient())
{ //my process }
//here should call https://getvalue.example.com url
UriBuilder urlLog = new UriBuilder(admin.url + "/getLive ")
using (Httpclient clientLog = new Httpclient())
{ //my other process }
}
How can I do this?