public async Task <IActionResult> Index()
        {
            var vm = new ApiResourcesViewModel {
                ApiResources = await _service.GetListApiResourcesAsync()
            };
            var errMsg = TempData["ErrorMessage"] as string;

            if (!string.IsNullOrWhiteSpace(errMsg))
            {
                ModelState.AddModelError("", errMsg);
            }
            return(View(vm));
        }