public async Task <ActionResult <string> > AddCountries([FromBody] Country country, CancellationToken cancellationToken) { if (country == null) { return(BadRequest("country is null")); } await countryContext.AddAsync(country); await countryContext.SaveChangesAsync(cancellationToken).ConfigureAwait(false); await cache.RemoveAsync("countries", cancellationToken).ConfigureAwait(false); return(Ok("OK!")); }