public void AddBooking(Booking booking) { try { dataBaseRepository.AddBooking(booking); } catch (Exception ex) { SaveException.Log("webErrors.txt", ex); throw new WebFaultException <string>("Sorry something went wrong when trying to add a booking to Database", HttpStatusCode.InternalServerError); } }
public void AddBooking(Booking booking) { dataBaseRepository.AddBooking(booking); }