[Route("api/reservation/getall")] // api/user/lot public IHttpActionResult GetAllUserReservations([FromBody, Required] ParkingMasterFrontendDTO request) { ReservationManager _reservationManager = new ReservationManager(); ResponseDTO <List <UserSpotDTO> > response = _reservationManager.GetAllUserReservations(request); if (response.Data != null) { return(Ok(response.Data)); } else { ResponseDTO <HttpStatusCode> statusResponse = ResponseManager.ConvertErrorToStatus(response.Error); return(Content(statusResponse.Data, statusResponse.Error)); } }