示例#1
0
        public AddResult AddPersonToRoom(PersonModel person, RoomModel room)
        {
            var result = _roomRepo.AddPersonToRoom(room.Id, person.Id);

            if (result == AddResult.OK)
            {
                _events.OnJoinedRoom(this, person, room);
            }
            return(result);
        }