Beispiel #1
0
        public async Task <IActionResult> Get(int limit = 10, int offset = 1)
        {
            _logger.LogInformation("Get method was called...");

            var result = await _launchPadService.GetLaunchPads(_baseUri, limit, offset);

            return(Ok(result));
        }
Beispiel #2
0
        public async Task <ActionResult <List <LaunchPadDto> > > Get([FromQuery] string fullname = null, [FromQuery] string status = null)
        {
            LaunchPadFilterOptions options = new LaunchPadFilterOptions
            {
                FullName = fullname,
                Status   = status
            };

            List <LaunchPad> fullInfo = await _launchPadService.GetLaunchPads(options);

            return(fullInfo.Select(l => new LaunchPadDto
            {
                Id = l.Id,
                Name = l.FullName,
                Status = l.Status
            }).ToList());
        }