public HomeController(ITrainSearchService <Info, SearchTrainsModel> trainSearchService, IMapperControl mapperControl,
                       ICityService cityService, IPriceCalculateService priceCalculateService)
 {
     this.trainSearchService    = trainSearchService;
     this.mapperControl         = mapperControl;
     this.cityService           = cityService;
     this.priceCalculateService = priceCalculateService;
     InfoItems         = new InfoViewModel();
     CarInfoViewModels = new List <CarInfoViewModel>();
     RouteInfo         = new RouteInfoViewModel();
 }
 public PersonController(IMapperControl mapperControl, IPersonService personService,
                         IReservedSeatService reservedSeatService, ITicketService ticketService,
                         IOrderService orderService, IPdfCreator pdfCreator, IEmailSender emailSender)
 {
     this.mapperControl       = mapperControl;
     this.personService       = personService;
     this.reservedSeatService = reservedSeatService;
     this.ticketService       = ticketService;
     this.orderService        = orderService;
     this.pdfCreator          = pdfCreator;
     this.emailSender         = emailSender;
     personViewModels         = new List <PersonViewModel>();
     ticketViewModels         = new List <TicketViewModel>();
 }