public void AddTakenSeat(int showId, int seatId, string userName) { var id = Context.ConnectionId; UserSeatManager.AddTakenSeat(showId, seatId, id); var methodName = "recievedAddedTakenSeat"; SendToAll(showId, methodName, new object[] { seatId, userName }); }
private void releaseTakenSeats(string userId, int showId) { var takenSeatsArr = UserSeatManager.ReleaseTakenSeats(showId, userId); if (takenSeatsArr != null) { var methodName = "releaseTakenSeats"; SendToAll(showId, methodName, new object[] { takenSeatsArr }); } }