public async Task <IActionResult> GetBets() { try { var user = await GetUser(); if (user == null) { return(NotFound()); } var bets = await _betRepository.GetUsersBets(user.Id); var betDtos = Mapper.Map <IEnumerable <BetDto> >(bets); return(Ok(betDtos)); } catch (Exception) { return(GetErrorStatusCodeAndGenericMessage()); } }