public static TraceabilityEntity Map(this TraceabilityDto entity)
 {
     return(new TraceabilityEntity()
     {
         CreationDate = entity.CreationDate,
         Document = entity.Document,
         TraceabilityId = entity.TraceabilityId,
     });
 }
예제 #2
0
        public async Task <TraceabilityDto> AddAsync(TraceabilityDto traceabilityDto)
        {
            await _traceabilityRepository.AddAsync(traceabilityDto.Map());

            return(traceabilityDto);
        }