i want to create a Dropdownlist with specific numbers in MVC
So in my model i have a property :
public IEnumerable<SelectListItem> Quantities { get; set; }
In my controller i instantiate my model :
Quantities = from s in numbers
select new SelectListItem { Text = s.ToString()}
numbers is a int array with 10 numbers in it.
This code works but the problem is i cant get the value(index) of the array from 's'.
Does anyone know how i can get this value?