add items from db into list asp.net core code example
Example: how to insert into a list c#
var words = new List<string>();
// Warning: insterting into a List can be very slow
// Insert a string at index 3
names.Insert(3, "Hello!");
var words = new List<string>();
// Warning: insterting into a List can be very slow
// Insert a string at index 3
names.Insert(3, "Hello!");