public JsonResult Lockout(int tournamentId, int bracketId) { if (account.IsLoggedIn()) { Models.Tournament tournament = new Models.Tournament(service, tournamentId); if (tournament.IsAdmin(account.Model.AccountID)) { status = tournament.LockBracket(bracketId, true); if (status) { message = "Bracket is not locked."; } else { message = "Bracket failed to lock."; } } } return(BundleJson()); }