Exemple #1
0
        public async Task <ActionResult> Post([FromBody] BookingStart booking)
        {
            var bookingId = await bookings.CreateAsync(booking);

            return(CreatedAtAction(nameof(Get), new { id = bookingId }, new { id = bookingId }));
        }