Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public async Task <IActionResult> ImportFormatFile(IFormFile file) { if (!_fileLoader.ValidateFile(file)) { return(UnprocessableEntity()); } var result = await _mediator.Send(new PollingStationCommand(_fileLoader.ImportFileAsync(file).Result)); if (result == -1) { return(new StatusCodeResult(StatusCodes.Status500InternalServerError)); } return(Ok()); }