Is someone could help me ?
*This post is locked for comments
Thank you for your answer! But I'd like to do something like this, after that I will use Postman .
public class ContactController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
{
return new string[] { "value1", "value2" };
}
// GET api/values/5
public string Get(int id)
{
return "value";
}
// POST api/values
public void Post([FromBody]string value)
{
}
// PUT api/values/5
public void Put(int id, [FromBody]string value)
{
}
// DELETE api/values/5
public void Delete(int id)
{
}
}
Hello,
Here is an example - docs.microsoft.com/.../web-api-basic-operations-sample-csharp
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6