@{
var days = Enumerable.Range(1, 31).Select(i => new SelectListItem
{
Text = i.ToString(),
Value = i.ToString()
});
SelectList source= new SelectList(days, "Value", "Text");
}
@Html.DropDownList("listId",source, "select")