示例#1
0
        private void AddEquipment(EventRoomEquipmentDto equipment, int eventId, EventRoomDto room, string token)
        {
            var equipmentReservation = new MpEquipmentReservationDto();

            equipmentReservation.Cancelled         = false;
            equipmentReservation.EquipmentId       = equipment.EquipmentId;
            equipmentReservation.EventId           = eventId;
            equipmentReservation.QuantityRequested = equipment.QuantityRequested;
            equipmentReservation.RoomId            = room.RoomId;
            equipmentReservation.Notes             = room.Notes;
            _equipmentService.CreateEquipmentReservation(equipmentReservation);
        }