/// <summary> /// Converts PersonQuality to PersonQualityAzure. /// </summary> /// <param name="personQuality">Type of the person.</param> /// <returns>PersonQualityAzure.</returns> public static PersonQualityAzure ToAzureModel(this PersonQuality personQuality) { var azureModel = new PersonQualityAzure(); personQuality.CopyTo(azureModel); return(azureModel); }
/// <summary> /// Converts PersonQualityAzure to PersonQuality. /// </summary> /// <param name="azureModel">The azure model.</param> /// <returns>PersonQuality.</returns> public static PersonQuality FromAzureModel(this PersonQualityAzure azureModel) { if (azureModel == null) { return(null); } var domainModel = new PersonQuality(); azureModel.CopyTo(domainModel); return(domainModel); }