public IActionResult Delete(int id)
        {
            var api = _configurationDbContext.ApiScopes
                      .Include(x => x.UserClaims)
                      .Include(x => x.Properties)
                      .FirstOrDefault(x => x.Id == id);

            return(View(ApiScopeModel.FromEntity(api)));
        }
        public IActionResult Edit(int id)
        {
            if (id != 0)
            {
                var api = _configurationDbContext.ApiScopes
                          .Include(x => x.UserClaims)
                          .Include(x => x.Properties)
                          .FirstOrDefault(x => x.Id == id);

                return(View(ApiScopeModel.FromEntity(api)));
            }
            else
            {
                return(View(new ApiScopeModel
                {
                }));
            }
        }