public void UpdatePropertyFile(PropertyAllotFile propertyAllotFile) { if (propertyAllotFile == null) { throw new ArgumentNullException("propertyAllotFile"); } _propertyFileRepository.Update(propertyAllotFile); //event notification _eventPublisher.EntityUpdated(propertyAllotFile); }
public static PropertyAllotFile ToEntity(this PropertyAllotFileModel model, PropertyAllotFile destination) { return(model.MapTo(destination)); }
public static PropertyAllotFileModel ToModel(this PropertyAllotFile entity) { return(entity.MapTo <PropertyAllotFile, PropertyAllotFileModel>()); }