コード例 #1
0
 public UpdateImportedPollingStation(Guid jobId, int pollingStationId, ImportedPollingStationUploadModel pollingStation)
 {
     JobId            = jobId;
     PollingStationId = pollingStationId;
     PollingStation   = pollingStation;
 }
コード例 #2
0
        public async Task <IActionResult> UpdateImportedPollingStationAsync([FromRoute] Guid jobId, [FromRoute] int id, [FromBody] ImportedPollingStationUploadModel pollingStation)
        {
            var result = await _mediator.Send(new UpdateImportedPollingStation(jobId, id, pollingStation));

            if (result.IsFailure)
            {
                return(Problem(result.Error));
            }

            return(Ok());
        }
コード例 #3
0
 public AddImportedPollingStation(Guid jobId, ImportedPollingStationUploadModel pollingStation)
 {
     JobId          = jobId;
     PollingStation = pollingStation;
 }