Пример #1
0
        public void RemoveReservation(int reservationId)
        {
            var reservation = _reservationRepository.Get(reservationId);

            _phoneRepository.AddPhoneAmount(reservation.ReservedItem.PhoneId, reservation.ReservedItem.ReservedQuantity);

            reservation.End = DateTime.Now;
            _reservationRepository.Remove(reservation);
        }