/// <summary> /// Process information /// </summary> /// <param name="participantInformationDto"></param> /// <returns></returns> public async Task <FileStreamResult> Process(ParticipantInformationDto participantInformationDto) { await _traceabilityRepository.AddAsync(participantInformationDto.Map()); MemoryStream resultProcess = await FileProcess(participantInformationDto); var result = new FileStreamResult(resultProcess, "text/plain") { FileDownloadName = CommonInformation.FileOutPut }; return(result); }
public async Task <TraceabilityDto> AddAsync(TraceabilityDto traceabilityDto) { await _traceabilityRepository.AddAsync(traceabilityDto.Map()); return(traceabilityDto); }