/// <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> /// The update personQuality. /// </summary> /// <param name="personQuality"> /// The personQuality. /// </param> /// <returns> /// The <see cref="Task"/>. /// </returns> public async Task <OperationResult> UpdatePersonQuality(PersonQuality personQuality) { var existingPersonQuality = await GetPersonQuality(personQuality.Id); if (existingPersonQuality == null) { return(OperationResult.NotFound); } personQuality.CopyTo(existingPersonQuality); return(new OperationResult(OperationResultStatus.Success)); }