示例#1
0
        public ActionResult <IEnumerable <Api> > GetAllCommands()
        {
            _logger.LogInformation(_configuration.GetConnectionString("PostgreSqlConnection"));
            var commands = _repository.GetAllCommands();

            Console.WriteLine(commands);
            return(Ok(commands));
        }
        public ActionResult <IEnumerable <ApiReadDto> > GetAllCommands()
        {
            var apiItems = _repo.GetAllCommands();

            return(Ok(_mapper.Map <ApiReadDto>(apiItems)));
        }
示例#3
0
        public ActionResult <IEnumerable <CommandReadDto> > GetAllCommands()
        {
            var commandItems = _repository.GetAllCommands();

            return(Ok(_mapper.Map <IEnumerable <CommandReadDto> >(commandItems)));
        }