Ejemplo n.º 1
0
        public IActionResult Create([FromBody] WSIdentityProvider identityProvider, long tenantId)
        {
            if (identityProvider == null)
            {
                return(BadRequest());
            }

            // TODO: Save the IDP here to DB
            DBlayer dbLayer = new DBlayer();

            identityProvider.TenantId = tenantId;
            dbLayer.CreateIDP(identityProvider);

            //return CreatedAtRoute("IDP", new { id = identityProvider.Id }, identityProvider);
            return(Ok(new { identityProvider }));
        }