public async Task <IActionResult> AddAgentAsset([FromForm] AgentAssetViewModel request) { try { Asset agentAsset = _manager.CreateAgentAsset(request); var response = await base.PostEntity(agentAsset); await _webhookPublisher.PublishAsync("Assets.NewAssetCreated", agentAsset.Id.ToString(), agentAsset.Name).ConfigureAwait(false); return(response); } catch (Exception ex) { return(ex.GetActionResult()); } }