public UpdateImportedPollingStation(Guid jobId, int pollingStationId, ImportedPollingStationUploadModel pollingStation) { JobId = jobId; PollingStationId = pollingStationId; PollingStation = pollingStation; }
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()); }
public AddImportedPollingStation(Guid jobId, ImportedPollingStationUploadModel pollingStation) { JobId = jobId; PollingStation = pollingStation; }