//вывести все данные из 2 таблицы public ActionResult <IEnumerable <SecondTableDTO> > GetAllCommands2() { var commandItems = _repository.GetAllCommands2(); return(Ok(_mapper.Map <IEnumerable <SecondTableDTO> >(commandItems))); }