Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        public async Task <TraceabilityDto> AddAsync(TraceabilityDto traceabilityDto)
        {
            await _traceabilityRepository.AddAsync(traceabilityDto.Map());

            return(traceabilityDto);
        }