public ActionResult <BookingAdapterOut> Get(int id) { try { BookingOrder booking = _bookingService.Read(id); return(Ok(new BookingAdapterOut { Id = booking.Id, Product = booking.Product, User = booking.User, StartTimeOfBooking = DateConverter.FromDatetimeToUTCEpoch(booking.StartTimeOfBooking), EndTimeOfBooking = DateConverter.FromDatetimeToUTCEpoch(booking.EndTimeOfBooking) })); } catch (Exception e) { return(BadRequest(e.Message)); } }