return Chapters.ElementAt(chIdxInt - 1); //index of chapter in the element starts from 0错误是:
无法隐式地将类型“System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<iq_main.dictChapters>>”转换为“System.Collections.Generi
我正尝试在netcore中实现干净的体系结构,但我遇到了运行时错误InvalidCastException: Unable to cast object of 'System.Collections.Generic.Listto System.Collections.Generic.IEnumerable 在WebUI中,我有匹配控制器和ViewAllMatch操作,如下所示 public async Task<IActionResult);
return (IEnumerable