You create an IEnumerable<decimal> with this part of the line that assigns a value to the speed
itemlist.Select(m =>m.taxrate)
You are now materializing IEnumerable in a List<decimal> with
itemlist.Select(m =>m.taxrate).ToList()
and pass this list to Convert.ToDecimal , and as far as I know, the Convert.ToDecimal overload that accepts the list does not exist. So the error.
To solve your problem, we need to know what the EstimatesModel.rate type is.
If it is a simple decimal (not a list of decimals), then you need to specify which value should be used from the whole list. First, last, amount, average?
for instance
rate = itemlist.Max(m =>m.taxrate);
or
rate = itemlist.First().taxRate;
EDIT Following the comment below, if you want to store in the EstimatesModel class a list of all bets returned by db.getitems , you need to define the rate field as List<decimal>
public class EstimatesModel { .... List<decimal> rate; }
and then you can just create your list with
rate = itemlist.Select(m =>m.taxrate).ToList()
no need Convert.ToDecimal(... m.taxrate ...) be taxrate already decimal
source share