public IActionResult DeleteAgent(int agentId) { try { serviceAgent.DeleteAgent(agentId); return(Ok()); } catch (Exception ex) { return(BadRequest(ex.Message)); } }