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))); }
public ActionResult <IEnumerable <CommandReadDto> > GetAllCommands() { var commandItems = _repository.GetAllCommands(); return(Ok(_mapper.Map <IEnumerable <CommandReadDto> >(commandItems))); }