public async Task <ActionResult <bool> > Remove(string resource) { var model = new RemoveApiResourceViewModel(resource); await _apiResourceAppService.Remove(model); return(ResponseDelete()); }
public async Task <ActionResult <DefaultResponse <bool> > > Remove([FromBody] RemoveApiResourceViewModel model) { if (!ModelState.IsValid) { NotifyModelStateErrors(); return(Response(false)); } await _apiResourceAppService.Remove(model); return(Response(true)); }
public Task <bool> Remove(RemoveApiResourceViewModel model) { var command = _mapper.Map <RemoveApiResourceCommand>(model); return(Bus.SendCommand(command)); }