Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public async Task <IdentityClaimTypeDto> CreateAsync(IdentityClaimTypeCreateDto input)
 {
     return(await ClaimTypeAppService.CreateAsync(input));
 }