public async Task <ActionResult <bool> > RemoveSecret(string resource, string type, string value)
        {
            var model = new RemoveApiSecretViewModel(resource, type, value);
            await _apiResourceAppService.RemoveSecret(model);

            return(ResponseDelete());
        }
Exemplo n.º 2
0
        public async Task <ActionResult <DefaultResponse <bool> > > RemoveSecret([FromBody] RemoveApiSecretViewModel model)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(Response(false));
            }
            await _apiResourceAppService.RemoveSecret(model);

            return(Response(true));
        }