/// <summary> /// Removes a booking from the registry /// </summary> /// <param name="id">id used to identify the booking to delete</param> public void RemoveBooking(int id) { try { var booking = GetBookingById(id); repo.Delete(booking); UnitOfWork.Commit(); } catch (Exception ex) { LogManager.Error(ex.Message); throw; } }