public async Task <IActionResult> Post([FromBody] ApiResourceApiDto apiResourceApi)
        {
            var apiResourceDto = apiResourceApi.ToApiResourceApiModel <ApiResourceDto>();
            await _apiResourceService.AddApiResourceAsync(apiResourceDto);

            return(Ok());
        }
Beispiel #2
0
        public async Task <IActionResult> Post([FromBody] ApiResourceApiDto apiResourceApi)
        {
            var apiResourceDto = apiResourceApi.ToApiResourceApiModel <ApiResourceDto>();

            if (!apiResourceDto.Id.Equals(default))