public async Task <IActionResult> CreatePollingStationInfo([FromBody] Models.CreatePollingStationInfo pollingStationInfo)
        {
            var pollingStationRequest = new Queries.CheckPollingStationExists
            {
                Id = pollingStationInfo.IdPollingStation
            };

            var foundPollingStation = await _mediator.Send(pollingStationRequest);

            if (!foundPollingStation)
            {
                return(NotFound(pollingStationInfo.IdPollingStation));
            }

            var request = _mapper.Map <Queries.CreatePollingStationInfo>(pollingStationInfo);

            request.IdObserver = this.GetIdObserver();
            await _mediator.Send(request);

            return(Accepted());
        }
        public async Task <IActionResult> UpdatePollingStationInfo([FromRoute] int id, [FromBody] EditPollingStationInfo pollingStationInfo)
        {
            var pollingStationRequest = new Queries.CheckPollingStationExists
            {
                Id = id
            };

            var foundPollingStation = await _mediator.Send(pollingStationRequest);

            if (!foundPollingStation)
            {
                return(NotFound(id));
            }

            var request = _mapper.Map <UpdatePollingStationInfo>(pollingStationInfo);

            request.IdObserver       = this.GetIdObserver();
            request.IdPollingStation = id;

            await _mediator.Send(request);

            return(Ok());
        }