Example #1
0
        public ActionResult SetRoles(NewUsersToRolesJsonModel usersJson)
        {
            var roles            = _roleMapper.ToDomainRoleTypes(usersJson.Role);
            var usersIds         = usersJson.UserIds;
            var specializationId = usersJson.SpecializationId;

            _userProvider.SetRoles(usersIds, roles, specializationId);

            return(Content("Success"));
        }