//public void Rent(Guid propertyId, Guid userId) //{ // _propertiesRepository.RentProperty(propertyId, userId); // _eventBus.Publish(); //} public bool ChangePropertyRentStatus(Guid propertyId, Guid userId, PropertyStatus status) { var result = _propertiesRepository.ChangePropertyRentStatus(propertyId, userId, status); _eventBus.Publish(CreateEvent(userId, propertyId, status)); return(result == 1); }