示例#1
0
        public void UpdatePropertyLendPicture(PropertyLendPicture propertyLendPicture)
        {
            if (propertyLendPicture == null)
            {
                throw new ArgumentNullException("propertyLendPicture");
            }

            _propertyPictureRepository.Update(propertyLendPicture);

            //event notification
            _eventPublisher.EntityUpdated(propertyLendPicture);
        }
示例#2
0
 public static PropertyLendPicture ToEntity(this PropertyLendPictureModel model, PropertyLendPicture destination)
 {
     return(model.MapTo(destination));
 }
示例#3
0
 public static PropertyLendPictureModel ToModel(this PropertyLendPicture entity)
 {
     return(entity.MapTo <PropertyLendPicture, PropertyLendPictureModel>());
 }