public TourLogic() { TourLogicMapper = new MapperConfiguration(cfg => { cfg.CreateMap <TourDTO, Tour>(); cfg.CreateMap <Tour, TourDTO>(); }).CreateMapper(); UoW = LogicDependencyResolver.ResolveUoW(); }
public TransportLogic() { TransportLogicMapper = new MapperConfiguration(cfg => { cfg.CreateMap <TransportDTO, Transport>(); cfg.CreateMap <TransportPlaceDTO, TransportPlace>(); cfg.CreateMap <Transport, TransportDTO>(); cfg.CreateMap <TransportPlace, TransportPlaceDTO>(); }).CreateMapper(); UoW = LogicDependencyResolver.ResolveUoW(); }
public HotelLogic() { HotelLogicMapper = new MapperConfiguration(cfg => { cfg.CreateMap <HotelDTO, Hotel>(); cfg.CreateMap <HotelRoomDTO, HotelRoom>(); cfg.CreateMap <Hotel, HotelDTO>(); cfg.CreateMap <HotelRoom, HotelRoomDTO> (); }).CreateMapper(); UoW = LogicDependencyResolver.ResolveUoW(); }
public UserLogic() { UserLogicMapper = new MapperConfiguration(cfg => { cfg.CreateMap <UserDTO, User>(); cfg.CreateMap <User, UserDTO>(); cfg.CreateMap <Transport, TransportDTO>(); cfg.CreateMap <TransportDTO, Transport>(); cfg.CreateMap <TransportPlace, TransportPlaceDTO>(); cfg.CreateMap <TransportPlaceDTO, TransportPlace>(); cfg.CreateMap <TourDTO, Tour>(); cfg.CreateMap <Tour, TourDTO>(); cfg.CreateMap <HotelRoomDTO, HotelRoom>(); cfg.CreateMap <HotelRoom, HotelRoomDTO>(); cfg.CreateMap <HotelRoomReservationDTO, HotelRoomReservation>(); cfg.CreateMap <HotelRoomReservation, HotelRoomReservationDTO>(); }).CreateMapper(); HotelRoomToDto = new MapperConfiguration(cfg => { cfg.CreateMap <HotelRoom, HotelRoomDTO>(); }).CreateMapper(); UoW = LogicDependencyResolver.ResolveUoW(); }