public JsonResult SeedChange(int tournamentId, int bracketId, Dictionary <String, int> players) { if (account.IsLoggedIn()) { Models.Tournament tournament = new Models.Tournament(service, tournamentId); if (tournament.IsAdmin(account.Model.AccountID)) { tournament.UpdateSeeds(players, bracketId); status = true; message = "Seeds are updated"; } else { message = "An error occured. Please try again later"; } } else { message = "You must login first"; } return(BundleJson()); }