我有一个.net web api 2,我想通过外部Windows窗体应用程序调用下面列出的方法,我找不到调用它的方法,任何想法?
public class UsersController : ApiController
{
[Route("api/Put/{id}/{maping}/{data}")]
[ResponseType(typeof(object))]
[AcceptVerbs("GET", "POST")]
public IHttpActionResult Put(int custId, [FromBody]Tuple<string,string> mapping, [FromBody]string data)
{
try
{
// ...... work to do
var result = new { Success = "success", ErrorMessage = "No Errors", c_CustGuid = Guid.NewGuid().ToString("B") };
return Ok(result);
}
catch(Exception ex) { return InternalServerError(ex); }
}
}