public static coreModel.Property ToCoreModel(this webModel.Property property) { var retVal = new coreModel.Property(); retVal.InjectFrom(property); retVal.Value = property.Value; return retVal; }
public static coreModel.Property ToCoreModel(this webModel.Property property) { var retVal = new coreModel.Property(); retVal.InjectFrom(property); retVal.Value = property.Value; return(retVal); }
public static coreModel.Property ToCoreModel(this dataModel.ContactPropertyValue entity) { if (entity == null) throw new ArgumentNullException("entity"); var retVal = new coreModel.Property(); retVal.InjectFrom(entity); retVal.ValueType = (coreModel.PropertyValueType)entity.ValueType; retVal.Value = GetPropertyValue(entity); return retVal; }
public static coreModel.Property ToCoreModel(this dataModel.ContactPropertyValue entity) { if (entity == null) { throw new ArgumentNullException("entity"); } var retVal = new coreModel.Property(); retVal.InjectFrom(entity); retVal.ValueType = (coreModel.PropertyValueType)entity.ValueType; retVal.Value = GetPropertyValue(entity); return(retVal); }