public async Task <ActionResult <IEnumerable <ViewModel> > > GetAsync( [FromQuery] string user, [FromQuery] string repo, [FromServices] ScrapingService scrapingService) { try { var endpoint = $"{user}/{repo}"; return((await scrapingService.GetResultRepositoryAsync(endpoint)).ToList()); } catch (Exception) { return(BadRequest("It was not possible to obtain results for this repository")); } }