public async Task <IdentityClaimTypeDto> UpdateAsync(Guid id, IdentityClaimTypeUpdateDto input) { var claimType = await ClaimTypeRepository.GetAsync(id); claimType.ConcurrencyStamp = input.ConcurrencyStamp; claimType.SetName(input.Name); claimType.SetValueType(input.ValueType); claimType.Required = input.Required; claimType.Description = input.Description; claimType.Regex = input.Regex; claimType.RegexDescription = input.RegexDescription; input.MapExtraPropertiesTo(claimType); await ClaimTypeManager.UpdateAsync(claimType); await CurrentUnitOfWork.SaveChangesAsync(); return(ObjectMapper.Map <IdentityClaimType, IdentityClaimTypeDto>(claimType)); }
public Task <IdentityClaimTypeDto> UpdateAsync(Guid id, IdentityClaimTypeUpdateDto input) { return(ClaimTypeAppService.UpdateAsync(id, input)); }