Example #1
0
 public IHttpActionResult GetEventRoomDetails(int eventId)
 {
     return(Authorized(token =>
     {
         try
         {
             var eventReservation = _eventService.GetEventRoomDetails(eventId);
             return Ok(eventReservation);
         }
         catch (Exception e)
         {
             var msg = "EventToolController: GetEventRoomDetails " + eventId;
             logger.Error(msg, e);
             var apiError = new ApiErrorDto(msg, e);
             throw new HttpResponseException(apiError.HttpResponseMessage);
         }
     }));
 }