public async Task <IActionResult> AllCurrentUserDecksWithCardsAsync(string id) { try { var content = await deckRepository.AllCurrentUserDecksWithCards(id); if (content.Count != 0) { logger.LogInformation("------------> Deck/s have been returned <------------"); return(Ok(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)); } }