public async Task <IActionResult> DefaultIdentityResources() { ActionResult Result = Ok(); var IdentityResources = new List <IdentityResource> { new IdentityResources.OpenId(), new IdentityResources.Profile(), new IdentityResources.Address(), new IdentityResources.Email(), }; bool IsSuccess = await Repository.AddRangeIdentityResource(IdentityResources); if (!IsSuccess) { Result = Problem("Error to add IdentityResource", null, 500, "", null); } return(Result); }