title: Radio buttons is not saving the value correctly in DB MVC4?
body: <p>Hi  i have  2 fields each field contain two radio buttons.  when i select the radio button and trying to save the value of Radio button in Db but it always save the value is zero. its not working correctly.</p>
  
  <p><a href="http://i.stack.imgur.com/23VEL.jpg" rel="nofollow">My View</a></p>
  
  <p>This is my fields <strong>PaymentReceived</strong> and <strong>PaymentType</strong>. Here i wrote j query code . if i select the  <strong>POVisit</strong> as <strong>Payment</strong> the <strong>PaymentReceived</strong> Radio button will appear and If i  select the <strong>PaymentReceived</strong> as <strong>Yes</strong> it  will show the <strong>PaymentType</strong> radio button Field and If i select Cash in PaymentType it will show the respective field otherwise all to be in hide mode. </p>
  
  <p>My View Code</p>
  
  <pre><code>&lt;div id ="PaymentReceived"&gt;
  &lt;div class="col-sm-4"&gt;
  &lt;div class="form-group"&gt;
   @Html.LabelFor(model =&gt; model.PaymentReceived, new { @class = "control-label" })
   @Html.RadioButton("PaymentReceived", 1) Yes
   @Html.RadioButton("PaymentReceived", 0) No
   &lt;/div&gt;
   &lt;/div&gt;
   &lt;/div&gt;
    &lt;div id ="PaymentType"&gt;
    &lt;div class="col-sm-4"&gt;
    &lt;div class="form-group"&gt;
   @Html.LabelFor(model =&gt; model.PaymentType, new { @class = "control-label" })
   @Html.RadioButton("PaymentType", 1) Cash
   @Html.RadioButton("PaymentType", 0) Cheque
   &lt;/div&gt;
   &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p><strong>My Controller code</strong></p>
  
  <pre><code>  if (visitorviewmodel.PaymentReceived == true)
    visitorviewmodel .PaymentReceived = true;
    else
    visitorviewmodel.PaymentReceived = false;
  
    if (visitorviewmodel.PaymentType == true)
    visitorviewmodel.PaymentType = true;
    else
    visitorviewmodel.PaymentType = false;
  
    var VisitorsViewObj = new VisitorsForm()
   {
  
   PaymentReceived = Convert.ToBoolean(visitorviewmodel.PaymentReceived),
   PaymentType= Convert.ToBoolean(visitorviewmodel.PaymentType),
   }; 
  </code></pre>
  
  <p>if i select Yes in Payment received  It will show the value as False in<br>
  <strong>if (visitorviewmodel.PaymentReceived == true)</strong>    if i select No  in PaymentReceived it will show the value as  false in if statement same as like for Payment type what ever i select the value in radio button it always show the value as false. now what i want is i want to save the value as per selected in radio button . that is if i select yes means it will save the value as 1 in DB if i select the value as no it have to save the value as 0 in DB. please any one help me to solve this problem.</p>