title: How to use PUT Method in Xamarin
body: <p><strong>I am trying to use PUT Method to update my rest API, but its not working and not showing any error or exception.</strong> </p>
  
  <p><strong>Please help me through this issue.</strong></p>
  
  <p><strong>And I am doing this in button event and textboxes(Entry) for input values:</strong></p>
  
  <p><strong>Funtion:</strong></p>
  
  <pre><code> private async void UpdateButton_Clicked(object sender, EventArgs e)
      {
  
  
          string aa = I.Text;
          string bb = N.Text;
          string cc = S.Text;
          string dd = A.Text;
          private HttpClient client = new HttpClient();
          var post = new check { id = aa, employee_name = bb, employee_salary = cc, employee_age = dd };
          var content = JsonConvert.SerializeObject(post);
          await client.PutAsync("http://dummy.restapiexample.com/api/v1/update/"+aa, new StringContent(content));
  
  
      }
  </code></pre>
  
  <p><strong>Class:</strong></p>
  
  <pre><code>public string id { get; set; } 
          public string employee_name { get; set; }
          public string employee_salary { get; set; }
          public string employee_age { get; set; }
          public string profile_image { get; set; }
  </code></pre>
  
  <p><strong>XAML:</strong></p>
  
  <pre><code> &lt;StackLayout Margin="0,50,0,0"&gt;
  
          &lt;Entry Placeholder="Enter your Id" x:Name="I"&gt;&lt;/Entry&gt;
          &lt;Entry Placeholder="Enter your name" x:Name="N"&gt;&lt;/Entry&gt;
          &lt;Entry Placeholder="Enter your salary" x:Name="S"&gt;&lt;/Entry&gt;
          &lt;Entry Placeholder="Enter your age" x:Name="A"&gt;&lt;/Entry&gt;
  
          &lt;Button Text="Update" x:Name="UpdateButton" Clicked="UpdateButton_Clicked"&gt;&lt;/Button&gt;
  
  
  
  
      &lt;/StackLayout&gt;
  </code></pre>