Example #1
0
        public void UpdatePropertyRentPicture(PropertyRentPicture propertyRentPicture)
        {
            if (propertyRentPicture == null)
            {
                throw new ArgumentNullException("propertyRentPicture");
            }

            _propertyPictureRepository.Update(propertyRentPicture);

            //event notification
            _eventPublisher.EntityUpdated(propertyRentPicture);
        }
Example #2
0
 public static PropertyRentPicture ToEntity(this PropertyRentPictureModel model, PropertyRentPicture destination)
 {
     return(model.MapTo(destination));
 }
Example #3
0
 public static PropertyRentPictureModel ToModel(this PropertyRentPicture entity)
 {
     return(entity.MapTo <PropertyRentPicture, PropertyRentPictureModel>());
 }