public async Task <IActionResult> Edit(string id) { var apiScopeInputModel = new ApiScopeInputModel(); if (!string.IsNullOrWhiteSpace(id)) { var scope = await ApiScopeService.GetApiScopeById(id); apiScopeInputModel.Id = scope.Id; apiScopeInputModel.Name = scope.Name; apiScopeInputModel.DisplayName = scope.DisplayName; apiScopeInputModel.Description = scope.Description; } return(View(apiScopeInputModel)); }