public async Task <ActionResult <Result> > AddCounty([FromBody] AddCountyCommand command)
        {
            var result = await Mediator.Send(command);

            if (!result.Succeeded)
            {
                return(BadRequest(result));
            }

            return(Ok(result));
        }
        public async Task <ActionResult <County> > CreateCounty(AddCountyCommand addCountyCommand)
        {
            try
            {
                County county = await this.mediator.Send(addCountyCommand);

                return(this.Ok(county));
            }
            catch (Exception ex)
            {
                return(this.BadRequest(ex));
            }
        }