public async Task <IActionResult> GetBookings(Booking bookings) { var result = await _repository.AddBookingAsync(bookings); return(Created(HttpContext.Request.Scheme + "://" + HttpContext.Request.Host + HttpContext.Request.Path + "/" + result.BookingID, result)); }