public virtual async Task <IdentityClaimTypeDto> UpdateAsync(Guid id, IdentityClaimTypeUpdateDto input) { var identityClaimType = await IdentityClaimTypeRepository.GetAsync(id); CheckChangingClaimType(identityClaimType); identityClaimType.Required = input.Required; if (!string.Equals(identityClaimType.Regex, input.Regex, StringComparison.InvariantCultureIgnoreCase)) { identityClaimType.Regex = input.Regex; } if (!string.Equals(identityClaimType.RegexDescription, input.RegexDescription, StringComparison.InvariantCultureIgnoreCase)) { identityClaimType.RegexDescription = input.RegexDescription; } if (!string.Equals(identityClaimType.Description, input.Description, StringComparison.InvariantCultureIgnoreCase)) { identityClaimType.Description = input.Description; } identityClaimType = await IdenityClaimTypeManager.UpdateAsync(identityClaimType); await CurrentUnitOfWork.SaveChangesAsync(); return(ObjectMapper.Map <IdentityClaimType, IdentityClaimTypeDto>(identityClaimType)); }
public virtual async Task <IdentityClaimTypeDto> UpdateAsync(Guid id, IdentityClaimTypeUpdateDto input) { return(await IdentityClaimTypeAppService.UpdateAsync(id, input)); }