Ejemplo n.º 1
0
        public async Task <IActionResult> SaveLdapMapping(LdapMapping[] ldapMappings, string roleId)
        {
            if ((ldapMappings.Count() != 0))
            {
                await _roleManager.DeleteLdapMappingAsync(roleId);

                foreach (var map in ldapMappings)
                {
                    await _roleManager.AddLdapMappingAsync(map);
                }
            }


            return(Ok(ldapMappings));
        }