コード例 #1
0
ファイル: PropertyLendService.cs プロジェクト: YuweiDai/CS
        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>());
 }