title: How to make PUT from ASP.NET MVC to ASP.NET Core Web API?
body: <p>I am having trouble with the put method of Web API. I am working with Kendo UI Jquery inside ASP.NET MVC and it has to make a PUT through API.</p>
  <p>Please guide me what am I doing wrong, also at the end of this is the error code.</p>
  <p>Here it is what I have tried so far:</p>
  <p>API controller:</p>
  <pre><code>[HttpPut] //It never reaches here
  [Route(&quot;api/Update&quot;)]
  public async Task&lt;IActionResult&gt; Update(Guid id, UpdateProductCommand command)
  {
      if (id != command.Id)
      {
          return BadRequest();
      }
  
      return Ok(await _mediator.Send(command));
  }
  </code></pre>
  <p>ASP.NET MVC controller:</p>
  <pre><code>public ActionResult Update(Guid id, [FromBody]Product product)
  {
      using (var client = new HttpClient())
      {
          client.BaseAddress = new Uri(&quot;https://localhost:44393&quot;);
              
          var json = JsonConvert.SerializeObject(product);
  
          var contentData = new StringContent(json, Encoding.UTF8, &quot;application/json&quot;);
  
          var response = client.PutAsync(&quot;/api/Product&quot;, contentData);
  
          var result = response.Result;
  
          if (result.IsSuccessStatusCode)
          {
              return RedirectToAction(&quot;Index&quot;);
          }
      }
  
      return View(product);
  }
  </code></pre>
  <p>View with Kendo UI:</p>
  <pre><code>&lt;script&gt;
      //----------TRANSPORT -------------------//
      var dataSource = new kendo.data.DataSource({
          batch: false,
          transport: {
              read: {
                  url: &quot;https://localhost:44393/api/Product&quot;,
                  dataType: &quot;json&quot;
              },
              update: {
                  url: &quot;@Url.Action(&quot;Update&quot;, &quot;Home&quot;)&quot;,
                  dataType: &quot;json&quot;,
              },
              create: {
                  url: &quot;@Url.Action(&quot;Create&quot;, &quot;Home&quot;)&quot;,
                  dataType: &quot;json&quot;,
                  contentType: &quot;application/json&quot;,
                  type: &quot;POST&quot;
              },
              destroy: {
                  url: &quot;@Url.Action(&quot;Delete&quot;, &quot;Home&quot;)&quot;,
                  dataType: &quot;json&quot;,
  
              },
             },
          pageSize: 5,
          schema: {
              model: {
                  id: &quot;id&quot;,
                  fields: {
                      id: { editable: false, nullable: true },
                      productName: { type: &quot;string&quot;, editable: true },
                      prouctSKU: { type: &quot;string&quot;, editable: true },
                      productType: { type: &quot;string&quot;, editable: true },
                  }
              }
          }
      });
  </code></pre>
  <p>Error:</p>
  <blockquote>
  <p>jquery.min.js:4 GET https://localhost:44385/Home/Update?id=1e8332f1-ae69-4997-b851-08d9ae81e7de&amp;productName=sd&amp;prouctSKU=string&amp;productType=string 415</p>
  </blockquote>