Hi , am getting below exception while casting
can anyone guide me to fix this ...
Unable to cast object of type 'Corel.Common.Models.OneLineItem' to type 'System.Collections.Generic.IEnumerable`1[Corel.Common.Models.OneLineItem]'.
created.ForEach(m => OneLineItems.AddRange((IEnumerable)m).Cast().ToList());

Khushbu SainiPosted Sep 10, 2020, 2:14 AM