Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 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));
 }