public async Task <Booking> BookAsync(Guid accommodationId, BookingDetails details) { await accommodationService.CheckAccommodationAsync(accommodationId); var booking = new Booking { Id = Guid.NewGuid(), User = securityContext.GetCurrentUser(), AccommodationId = accommodationId, Details = details }; await dataSource.CreateAsync(booking); return(booking); }