public void CreateBookingForPerson(string person) { try { BookingRepo.CreateBooking(person); } catch (Exception e) when(!e.IsLogged()) { string errorMsg = $"An error occurred while creating a booking for person {person}."; e.Log(errorMsg); throw; } }
public void CreateBookingForPerson(string person) { BookingRepo.CreateBooking(person); }