[SOLVED] Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<CommandAPI.Dtos.CommandReadDto>' to 'Microsoft.AspNetCore.Mvc.ActionResult

Issue Every time I test for the target action: GetAllCommands(), I face this error! Here my code: [HttpGet] public ActionResult<IEnumerable<CommandReadDto>> GetAllCommands() { var commandItems = _repository.GetAllCommands(); return _mapper.Map<IEnumerable<CommandReadDto>>(commandItems);//error-pane code } But when I return the result set as follow, it

Continue reading