public IActionResult SetPlayer(PlayerCountViewModel model)
        {
            if (ModelState.IsValid)
            {
                return(PartialView("_players", model.PlayerCount));
            }

            return(NotFound());
        }
        private async Task SendPicture(long chatId, PlayerCountViewModel player, string msg)
        {
            UserProfilePhotos userProfilePhotos = null;

            try
            {
                userProfilePhotos = await _client.GetUserProfilePhotosAsync(player.UserId);
            }
            catch (Exception e)
            {
                var defaultConsoleColor = Console.BackgroundColor;
                Console.BackgroundColor = ConsoleColor.Red;
                Console.WriteLine(@"Exception creating picture, YearWinnerJob: " + e.Message);
                Console.BackgroundColor = defaultConsoleColor;
            }

            await using var winnerImage = await GetWinnerImage(userProfilePhotos);

            await _client.TrySendPhotoAsync(chatId, new InputOnlineFile(winnerImage), msg, ParseMode.Html);
        }
 public PlayerCountView(PlayerCountViewModel vm)
 {
     InitializeComponent();
     vm.Navigation  = Navigation;
     BindingContext = vm;
 }