Inside your view, add a razor code Like below.
You may have on top =
@model IEnumarable<employee>
and itarate through this list like,
<table>
<thead>
<tr><th>Name</th></tr>
<tr><th>Gender</th></tr>
<thead>
<tbody>
@{
foreach(var item in Model) // Here item is one Employee Model object
{
<tr>
var GenderText = "Male";
if(item.Gender == 2){GenderText = "Female"}
<td>
<input type=text name="Name" value="item.Name"/>
</td>
<td>
<input type="text" name="Gender" value="@GenderText" />
</td>
</tr>
}
}
</tbody>
</table>
There are other way to acheive this like having a ViewModel or ModelBinder. I feel the above one is best and I have used it many times in my project.
Hope this helps.