public IActionResult Delete(int id)
 {
     _agentRepository.DeleteAgent(id);
     _agentRepository.Save();
     return(Ok());
 }