public IActionResult GetCounties()
        {
            try
            {
                var counties = _countyService.GetAllCounties().Select(county => new
                {
                    Name = county.Name
                }).ToList();

                return(Json(new { counties = counties }));
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }