Tanmay Mule

Tanmay Mule

  • NA
  • 29
  • 2.2k

How to use PUT method using AJAX to call WEB API controller

Feb 11 2015 6:20 AM
I want to update record in database by using WEB API Controller

 // PUT api/Student/5
        [HttpPut]
        public HttpResponseMessage PutStudent(int id, [FromBody]Student student)
        {
        //body
        }

then how should I call this method using jquery ajax put method?

Answers (5)