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