public IActionResult Post([FromBody] Agent value)
        {
            if (value.Id == 0)
            {
                _agentRepository.InsertAgent(value);
            }
            else
            {
                _agentRepository.UpdateAgent(value);
            }

            _agentRepository.Save();

            return(Ok(value));
        }