public IActionResult PostBookings([FromBody, Bind("BookingId,GroupName,TimeFrame,BookingStatus,ClientName,Location,Review,Score")] Bookings bookings) { // the client can't set the ID _bookingrepo.AddBookings(bookings); return(CreatedAtRoute("GetBookings", new { BookingId = bookings.BookingId }, bookings)); }