async public Task <string> GetAsync([FromServices] CustomRepository repo, [FromQuery] string key) { Console.WriteLine(await repo.GetAsync(key)); repo.Text = "Invalid value"; Console.WriteLine(repo.Text); return("GetAsync OK"); }