public async Task <IActionResult> Create([FromBody] ApiResourceCreateDto form)
        {
            await _apiResourceService.Create(form);

            string uri = Url.Action(nameof(GetByName), new { form.Name });

            return(Created(uri, null));
        }
Ejemplo n.º 2
0
        public async Task <ResponseBase <bool> > Create([FromBody] CreateApiResourceInput input)
        {
            var result = await _apiResourceService.Create(input);

            return(result);
        }