I'm working on an ASP.NET Coe Web API project.
I have a post method (route) and I need it to call another get method:
[HttpGet(Name = "Profile")]
public async Task<ActionResult<ProfileResponseDto>> GetProfile(string username)
If I call :
return RedirectToRoute("Profile", new { username = profile.UserName });
I will end up with Get resource.
But what I want is to take the result of that Get method and continue in my post method.
In Python its something like
amount = requests.get("http://"+catalogIpAddress+":"+port+"/count/" + str(id))