Esempio n. 1
0
        public ActionResult GetMachines()
        {
            Guid carIdGuid  = Guid.Empty;
            Car  carGuid    = null;
            var  cardetails = bookingRepository.GetCarDetails(carIdGuid, carGuid);

            return(View(cardetails));
        }
        public CarDetails GetCarDetails(Guid carId, Car car)
        {
            Guid carIdGuid = Guid.Empty;
            Car  carGuid   = null;

            var booking = bookingRepository.GetCarDetails(carIdGuid, carGuid);

            if (booking == null)
            {
                throw new EntityNotFoundException(carIdGuid);
            }

            return(booking);
        }