// Initial object - no ORM to worry about here // but will this approach be compatible with an ORM? public static RestaurantBooking CreateBooking(Restaurant restaurant, Customer customer, BookingDetails details) { var id = Guid.NewGuid(); var notifier = new RestaurantNotifier(); // Redesign RestaurantBooking entity to suit this style of construction //return new RestaurantBooking(restaurant, customer, details, id, notifier); return null; }
public bool NotifyBookingConfirmation(Restaurant Restaurant, Customer Customer, Guid Id, BookingDetails BookingDetails) { throw new NotImplementedException(); }
// Initial object - no ORM to worry about here // but will this approach be compatible with an ORM? public static RestaurantBooking CreateBooking(Restaurant restaurant, Customer customer, BookingDetails details) { var id = Guid.NewGuid(); var notifier = new RestaurantNotifier(); // Redesign RestaurantBooking entity to suit this style of construction //return new RestaurantBooking(restaurant, customer, details, id, notifier); return(null); }