public IActionResult Scan([FromQuery] Guid siteId) { var sc = _siteConfigurationService.GetSiteConfiguration(siteId); _scanRequestService.Scan(ScanRequestDto.Create(sc.SiteId)).Wait(); return(View("Index")); }
public async Task <IActionResult> Scan([FromBody] ScanRequestDto request) { var sc = _siteConfigurationService.GetSiteConfiguration(request.SiteId); await _scanRequestService.Scan(ScanRequestDto.MapTo(request)); return(NoContent()); }