Esempio n. 1
0
        public virtual async Task <IdentityRoleDto> CreateAsync(IdentityRoleOrgCreateDto input)
        {
            var role = await base.CreateAsync(
                ObjectMapper.Map <IdentityRoleOrgCreateDto, IdentityRoleCreateDto>(input)
                );

            if (input.OrgId.HasValue)
            {
                await OrgManager.AddRoleToOrganizationUnitAsync(role.Id, input.OrgId.Value);
            }
            return(role);
        }
Esempio n. 2
0
 public Task <IdentityRoleDto> CreateAsync(IdentityRoleOrgCreateDto input)
 {
     return(RoleAppService.CreateAsync(input));
 }