Код: Выделить всё
statusLookup.Where(s => s.Id == (int)o.Status)?.FirstOrDefault()?.DisplayName
Есть причина?
Подробнее здесь: https://stackoverflow.com/questions/798 ... -exception
Код: Выделить всё
statusLookup.Where(s => s.Id == (int)o.Status)?.FirstOrDefault()?.DisplayName