Check out example codes for "asp.net core selectlist". It will help you in understanding the concepts better.

Code Example 1

In Library:
public static class UI_Data
{
    public static string[] QuestionsArray = {
      "Question 1",
      "Question 2",
      "Question 3"
      };
}

In Model:
public string UserQuestionNumber { get; set; } = "";

In View:
<select asp-for="UserQuestionNumber">
@for (int i = 0; i < UI_Data.QuestionsArray.Length; ++i)
{
  	<option [email protected]()> @UI_Data.QuestionsArray[i] </option> 
}
</select>

In Controller:
try
{
 	int questionNumber = Int16.Parse(userModel.UserQuestionNumber);
	...
}
catch (Exception error)
{
  	return View();
}

Learn ReactJs, React Native from akashmittal.com