Exemplo n.º 1
0
        public async Task <object> Post()
        {
            if (WindowsAuthenticationHelper.IsFeatureEnabled())
            {
                throw new AlreadyExistsException(WindowsAuthenticationHelper.FEATURE_NAME);
            }

            await WindowsAuthenticationHelper.SetFeatureEnabled(true);

            dynamic auth = WindowsAuthenticationHelper.ToJsonModel(null, null);

            return(Created(WindowsAuthenticationHelper.GetLocation(auth.id), auth));
        }