I have one input that is needed in many forms, so I created a partial view for that. In the partial view I query the database and generate a drop down list.I just want to make sure, this is the best way to achieve this.The partial view looks like this:@model long?@{    var data = Utility.GetData();}@Html.DropDownListFor(m => m, new SelectList((System.Collections.IEnumerable)data, Id, Text),    new { @class = form-control input-sm })And I'll use it like this:@Html.EditorFor(x => x.LiIdPeriod, Years)I should note that this is a SPA and intranet application.
Partial view for frequently used drop down lists
c#;form;asp.net mvc;razor