public IActionResult StarWarsCharacters(string searchString) { var w = new Stopwatch(); w.Start(); if (string.IsNullOrWhiteSpace(searchString)) { return(View(new StarWarsCharacter[0])); } var result = _starWarsService.SearchCharacters(searchString); LoadLogos(result.ToList()); w.Stop(); Console.WriteLine($"******Execution time {w.ElapsedMilliseconds}"); return(View(result)); }