public async Task <IdentityClaimTypeDto> CreateAsync(IdentityClaimTypeCreateDto input) { var claimType = new IdentityClaimType(GuidGenerator.Create(), input.Name, input.Required, false, input.Regex, input.RegexDescription, input.Description, input.ValueType); input.MapExtraPropertiesTo(claimType); await ClaimTypeManager.CreateAsync(claimType); await CurrentUnitOfWork.SaveChangesAsync(); return(ObjectMapper.Map <IdentityClaimType, IdentityClaimTypeDto>(claimType)); }
public async Task <IdentityClaimTypeDto> CreateAsync(IdentityClaimTypeCreateDto input) { return(await ClaimTypeAppService.CreateAsync(input)); }