public async Task <IActionResult> GetGenresAsync() { // get list of genres as list of string return(await ResultHandler.Handle(keyRotation.RetryCosmosPolicy.ExecuteAsync(() => dal.GetGenresAsync()), nameof(GetGenresAsync), Constants.GenresControllerException, logger).ConfigureAwait(false)); }
public async Task <IActionResult> GetGenresAsync() { // get list of genres as list of string return(await ResultHandler.Handle(dal.GetGenresAsync(), nameof(GetGenresAsync), Constants.GenresControllerException, logger).ConfigureAwait(false)); }