public IActionResult DeleteProperty(int id)
        {
            var prop = _configurationDbContext.Set <IdentityResourceProperty>()
                       .Include(x => x.IdentityResource)
                       .FirstOrDefault(x => x.Id == id);

            return(View(IdentityResourcePropertyModel.FromEntity(prop)));
        }
        public IActionResult DeleteProperty(IdentityResourcePropertyModel model)
        {
            var identity = _configurationDbContext.IdentityResources
                           .Include(x => x.Properties)
                           .FirstOrDefault(x => x.Id == model.IdentityResource.Id);
            var prop = identity.Properties.FirstOrDefault(x => x.Id == model.Id);

            identity.Properties.Remove(prop);
            _configurationDbContext.SaveChanges();

            return(RedirectToAction(nameof(Properties), new { id = identity.Id }));
        }