I Have a C# WinForms application and in a form I want to consume (Get) some data from an ASP Web API application.
in Web API I have a controller named Session inside this controller I have two methods as shown below :
public int Create()
{
Random random = new Random();
int New_ID = random.Next();
return New_ID ;
}
public string Get()
{
return "Catch this data";
}
So the problem is when I use browser URL (For testing) to access to controller (Session)
URL : http://localhost:52626/api/Session
And when I want to access to controller (Session) especially Create Function
URL : http://localhost:52626/api/Session/Create
I got
The global question is how can I create my own methods and access to it without depending on Get ?

