using AutoMapper; using FileService.Application.StorageContracts; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FileService.Application.UploadFileTask { public class UploadTaskMapperConfig:Profile { public UploadTaskMapperConfig() { CreateMap() .ForMember(dest => dest.StorageLocation, opt => opt.MapFrom(src => src.Location)) .ForMember(dest => dest.UploadSessionId, opt => opt.MapFrom(src => src.UploadSessionId)) ; } } }