public async Task <IActionResult> AllCurrentUserDecksAsync(string id) { try { var content = await deckRepository.AllCurrentUserDecks(id); if (content.Count != 0) { logger.LogInformation("------------> Deck/s have been returned <------------"); return(Ok(snakeCaseConverter.ConvertToSnakeCase(content))); } else { logger.LogWarning("------------> Deck/s not found <------------"); return(NotFound("Deck/s not found")); } } catch (Exception ex) { logger.LogWarning("------------> An error has occurred <------------ \n" + ex.Message); return(BadRequest(ex.Message)); } }