public async Task <IActionResult> ApiResourceDelete(int id) { if (id == 0) { return(NotFound()); } var apiResource = await _apiResourceService.GetApiResourceAsync(id); return(View(apiResource)); }
public async Task <IActionResult> ApiResource(int id) { if (id == 0) { var apiResourceDto = new ApiResourceDto(); return(View(apiResourceDto)); } var apiResource = await _apiResourceService.GetApiResourceAsync(id); return(View(apiResource)); }
public async Task <ActionResult <ApiResourceApiDto> > Get(int id) { var apiResourceDto = await _apiResourceService.GetApiResourceAsync(id); var apiResourceApiDto = apiResourceDto.ToApiResourceApiModel <ApiResourceApiDto>(); return(Ok(apiResourceApiDto)); }
public async Task <ActionResult <JsonResponse <ApiResource> > > Get(string name) { var resource = await _apiService.GetApiResourceAsync(name); return(JsonResponse(resource)); }