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

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

            return(Ok(result));
        }
        public async Task <ActionResult <County> > UpdateCounty(int countyId, UpdateCountyCommand updateCountyCommand)
        {
            try
            {
                updateCountyCommand.SetCountyId(countyId);
                County county = await this.mediator.Send(updateCountyCommand);

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