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