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)); }
public async Task <ResponseBase <bool> > Create([FromBody] CreateApiResourceInput input) { var result = await _apiResourceService.Create(input); return(result); }