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