Thank you David for your answer.
I did as you said by creating a custom table and add a "ProgramName" and "ProgramID" fields.
How can I pass it to my view?
I tried:
IEnumerable<ProgramList> allPrograms = CustomTableItemProvider.GetItems<ProgramList>(customTableClassName);
in my controller and then in my view:
@Html.DropDownListFor(m => m.Data.ProgramSelected, new SelectList(Model.Data.AllPrograms, "ProgramID", "ProgramName"), "- Please Select -", new { @class = "browser-default" })
with the following model
public class ProgramList
{
public string ProgramID { get; set; }
public string ProgramName { get; set; }
}
But I get an error in the controller (No overload for method GetItems take 1 arguments)...
Any ideas
Also, wouldn't it be asier to have the translation directly in the custom tables instead of using the resource strings? If you have a table of countries for example with 200 records, it is going to be tricky to manage in the resource strings? What do you think?
S.