Пример #1
0
 public IHttpActionResult Get2(int idReservation)
 {
     try
     {
         var reservationManager = new ReservationManagement();
         apiResponse = new ApiResponse();
         var newReservation = new Reservation()
         {
             Id = idReservation
         };
         var reservation = reservationManager.RetrieveById(newReservation);
         apiResponse.Data = reservation;
         return(Ok(apiResponse));
     }
     catch (BussinessException bex)
     {
         return(InternalServerError(new Exception(bex.AppMessage.Message)));
     }
 }