5
Answers

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

Tanmay Mule

Tanmay Mule

10y
1.3k
1
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)