public void UpdatePropertyRentPicture(PropertyRentPicture propertyRentPicture) { if (propertyRentPicture == null) { throw new ArgumentNullException("propertyRentPicture"); } _propertyPictureRepository.Update(propertyRentPicture); //event notification _eventPublisher.EntityUpdated(propertyRentPicture); }
public static PropertyRentPicture ToEntity(this PropertyRentPictureModel model, PropertyRentPicture destination) { return(model.MapTo(destination)); }
public static PropertyRentPictureModel ToModel(this PropertyRentPicture entity) { return(entity.MapTo <PropertyRentPicture, PropertyRentPictureModel>()); }