public CityRepository(RepositoriesContext context) { _context = context; _mapper = new Mapper(new MapperConfiguration(x => x.CreateMap <City, CityDto>().ReverseMap())); }
public LogisticCenterRepository(RepositoriesContext context) { _context = context; _mapper = new Mapper(new MapperConfiguration(x => x.CreateMap <LogisticCenter, LogisticCenterDto>().ReverseMap())); }
public PathRepository(RepositoriesContext context) { _context = context; _mapper = new Mapper(new MapperConfiguration(x => { x.CreateMap <Path, PathDto>().ReverseMap(); x.CreateMap <City, CityDto>().ReverseMap(); })); }