правки

This commit is contained in:
2025-04-08 14:27:46 +04:00
parent ea790d5d17
commit ac4aa4a146
10 changed files with 16 additions and 14 deletions

View File

@@ -24,7 +24,9 @@ internal class TourStorageContract : ITourStorageContract
_dbContext = dbContext;
var config = new MapperConfiguration(cfg =>
{
cfg.AddMaps(typeof(Tour));
cfg.CreateMap<Tour, TourDataModel>();
cfg.CreateMap<TourDataModel, Tour>();
cfg.CreateMap<TourHistory, TourHistoryDataModel>(); ;
});
_mapper = new Mapper(config);
}