title: Having trouble getting the value of the selected radio button in MVC. Whatever value is listed first is the value i get back to controller.
body: <p>I am having trouble passing the value of the selected radio button to my controller. Whatever radio button i have listed first is the value i get back to my controller. For example "tst" is always returned</p>
  
  <p>VIEW WITH JQUERY</p>
  
  <pre><code>&lt;div class="atk-radio-center"&gt;
              &lt;div&gt;                   
                      @Html.RadioButtonFor(m =&gt; m.Impact, "tst", new { Checked = "checked" })
                      Yes
                      @Html.RadioButtonFor(m =&gt; m.Impact, "0")
                      No
              &lt;/div&gt;
          &lt;/div&gt;
  &lt;script&gt;
  $("#btnContinue").click(function () {
      $.post("/Start/SaveServiceAffectd",
          {
              impact: $('#Impact').val(),
              description: $('#Description').val(),
  
          },
          function (data) {
              if (data == "true") {
  
              } else {
  
              }
          });
  });
  </code></pre>
  
  <p></p>
  
  <p>CONTROLLER</p>
  
  <pre><code> [HttpPost]
      public bool SaveServiceAffectd(string impact, string description)
      {
          try
          {
              var jobs = new JobRepository();
              jobs.UpdateUserJob(PCSSession.Current.CurrentJob.id, impact, description);
              return true;
          }
          catch(Exception ex)
          {
              return false;
              throw ex;              
          }
  
  
      }
  </code></pre>
  
  <p>VIEW MODEL</p>
  
  <pre><code>    [Required(ErrorMessage = "Work Description is required")]
      [Display(Name = "Description")]
      public string Description { get; set; }
  
      [Required(ErrorMessage = "Answer for Impact is required")]
      public string Impact { get; set; }
  </code></pre>