public async Task <IHttpActionResult> GetSingleBookingById(int id) { var singleBooking = await bookingServices.GetSingleBooking(id); if (singleBooking == null) { return(ResponseMessage(Request.CreateResponse(HttpStatusCode.BadRequest, "There is no booking associated with that BookingId"))); } return(Ok(await bookingServices.GetSingleBooking(id))); }