예제 #1
0
        public bool ReserveTable(ReservationViewModel reservationData)
        {
            var checkResult = Check(reservationData.UpdatePreReservation());

            if (checkResult.IsAvailable)
            {
                _reservationsRepository.Add(reservationData.UpdateModel(new Model.Models.Reservation()), checkResult.TableList);
                _unitOfWork.Commit();
                return(true);
            }
            return(false);
        }