title: MVC4: Two radio buttons for a single boolean model property
body: <p>I'm attempting to find the correct Razor syntax for mutually exclusive radio buttons that both reflect the value of a boolean property on my model.  My model has this:</p>
  
  <pre><code>public bool IsFemale{ get; set; }
  </code></pre>
  
  <p>I would like to display this with two radio buttons, one "Male" and the other "Female," but everything I've tried so far has not reflected the actual value of the <code>IsFemale</code> property on the model.  Currently, I have this:</p>
  
  <pre><code>@Html.RadioButtonFor(model =&gt; model.IsFemale, !Model.IsFemale) Male
  @Html.RadioButtonFor(model =&gt; model.IsFemale, Model.IsFemale) Female
  </code></pre>
  
  <p>This seems to persist the value correctly if I change and update, but does not mark the correct value as checked.  I'm sure this is something stupid, but I'm stuck.</p>