Example #1
0
        public void UpdatePropertyFile(PropertyAllotFile propertyAllotFile)
        {
            if (propertyAllotFile == null)
            {
                throw new ArgumentNullException("propertyAllotFile");
            }

            _propertyFileRepository.Update(propertyAllotFile);

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