Display checkbox Data value from database using mvc
<p>I need to create a form to register.</p>

<p>the example of form will look like this</p>

<p><a href="https://i.stack.imgur.com/D6q6s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D6q6s.png" alt="enter image description here"></a></p>

<p>how do I display the value in the red circle in the form? (the value is from database)</p>

<p>My controller</p>

<pre><code>namespace Insurance.Controllers
{
    public class FlexiPAController : Controller
    {
        //
        // GET: /FlexiPA/

        public ActionResult RegisterFlexiPA()
        {


            return View();
        }

        public ActionResult  RegisterFire()
        {
            return View();
        }

        public ActionResult RegisterMotor()
        {
            return View();
        }
    }
}
</code></pre>

<p>My ViewModel    </p>

<pre><code>namespace Insurance.ViewModels
{ 
    public class RegisterInfoPA
    {
        public register reg { get; set; }
        public infoPA infoFlexiPA { get; set; }
        public personalInfo pinfo { get; set; }
        public List&lt;maritalInfo&gt; minfo { get; set; }
        public childInfo cInfo { get; set; }
    }
}
</code></pre>

<p>My view</p>

<pre><code>@using (Html.BeginForm()) {
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)

   &lt;!--TITLE--&gt;
    &lt;div class="editor-label"&gt;
        Title
    &lt;/div&gt;
    &lt;div class="editor-field"&gt;
        @Html.EditorFor(model =&gt; model.reg.title)
        @Html.ValidationMessageFor(model =&gt; model.reg.title)
    &lt;/div&gt;
    &lt;!--NAME--&gt;
    &lt;div class="editor-label"&gt;
        Name
    &lt;/div&gt;
    &lt;div class="editor-field"&gt;
        @Html.EditorFor(model =&gt; model.reg.registerNm)
        @Html.ValidationMessageFor(model =&gt; model.reg.registerNm)
    &lt;/div&gt;

    &lt;!--IC NO--&gt;
    &lt;div class="editor-label"&gt;
        IC No
    &lt;/div&gt;
    &lt;div class="editor-field"&gt;
        @Html.EditorFor(model =&gt; model.reg.identityNo)
        @Html.ValidationMessageFor(model =&gt; model.reg.identityNo)
    &lt;/div&gt;

        &lt;!--GENDER--&gt;
&lt;div class="editor-label"&gt;
    Gender
&lt;/div&gt;
&lt;div class="editor-field"&gt;
    @Html.EditorFor(model =&gt; model.pinfo.gender)
    @Html.ValidationMessageFor(model =&gt; model.pinfo.gender)
&lt;/div&gt;
</code></pre>

<blockquote>
<pre><code>    &lt;!--Marital Status--&gt;
    &lt;div class="editor-label"&gt;
        **Marital Status**
    &lt;/div&gt;
    &lt;div class="editor-field"&gt;     
    &lt;/div&gt;
</code></pre>
  
  <p><strong>Wanted to make the checkbox here for marital status eg :single,widowed,married</strong> </p>
</blockquote>

<p>I am new to mvc, really appreciate your helps.</p>