Ejemplo n.º 1
0
        public IActionResult _FullInformation(TripTab tab = TripTab.StartedTrips)
        {
            var model = new FullInformationVM
            {
                Tab = tab
            };

            return(PartialView(model));
        }
Ejemplo n.º 2
0
        public IActionResult _FullInformation(ScheduleTab tab = ScheduleTab.Schedule)
        {
            var model = new FullInformationVM
            {
                Tab = tab
            };

            return(PartialView(model));
        }
Ejemplo n.º 3
0
        public IActionResult _FullInformation(BusTab tab = BusTab.Bus)
        {
            var buses = ServiceFactory.BusManagement.GetBuses();
            var vehicles = ServiceFactory.BusManagement.GetVehicles();

            var model = new FullInformationVM
            {
                Buses = buses.Data,
                Vehicles = vehicles.Data,
                Tab = tab
            };
            return PartialView(model);
        }
Ejemplo n.º 4
0
        public IActionResult _FullInformation(DriverTab tab = DriverTab.Info)
        {
            var drivers  = ServiceFactory.DriverManagement.GetDrivers();
            var contacts = ServiceFactory.DriverManagement.GetDriverContacts();

            var model = new FullInformationVM
            {
                Drivers  = drivers.Data,
                Contacts = contacts.Data,
                Tab      = tab
            };

            return(PartialView(model));
        }
        public IActionResult _FullInformation(GeolocationTab tab = GeolocationTab.Locations)
        {
            var cities    = ServiceFactory.GeolocationManagement.GetCities().Data;
            var districts = ServiceFactory.GeolocationManagement.GetDistricts().Data;
            var countries = ServiceFactory.GeolocationManagement.GetCountries().Data;
            var locations = ServiceFactory.GeolocationManagement.GetLocations().Data;

            var model = new FullInformationVM
            {
                Cities    = cities,
                Districts = districts,
                Countries = countries,
                Locations = locations,
                Tab       = tab
            };

            return(PartialView(model));
        }