public ActionResult HatGoster()
        {
            BusRouteModel hat = new BusRouteModel();

            hat.listOfBusNumbers = new List <BusRouteModel>();
            hat.ShowBusNumbers();
            return(View(hat));
        }
Exemple #2
0
        // Sürücü Kayıt Sayfası
        public ActionResult DriverOperations()
        {
            BusRouteModel busModel = new BusRouteModel();

            busModel.busNumbersComboBoxDoldur = new List <int>();
            busModel.busNumbersComboBoxDoldur = busModel.ShowBusNumbers();
            var tuple = new Tuple <BusRouteModel, MapModel>(busModel, new MapModel());

            return(View(tuple));
        }
Exemple #3
0
        // GET: Bus
        public ActionResult OtobusKayit()
        {
            BusRouteModel otobusNumarasi = new BusRouteModel();

            otobusNumarasi.busNumbersComboBoxDoldur = new List <int>();
            otobusNumarasi.busNumbersComboBoxDoldur = otobusNumarasi.ShowBusNumbers();
            var tuple = new Tuple <BusRouteModel, BusModel>(otobusNumarasi, new BusModel());

            return(View(tuple));
        }
Exemple #4
0
        public ActionResult UpdateDrivers(long?TC)
        {
            BusRouteModel otobusNumarasi = new BusRouteModel();

            otobusNumarasi.busNumbersComboBoxDoldur = new List <int>();
            otobusNumarasi.busNumbersComboBoxDoldur = otobusNumarasi.ShowBusNumbers();
            MapModel drivers = new MapModel();

            drivers.UpdateDriver(TC);
            var tuple = new Tuple <BusRouteModel, MapModel>(otobusNumarasi, drivers);

            return(View(tuple));
        }
Exemple #5
0
        public ActionResult OtobusGuncelle(int Id)
        {
            BusRouteModel otobusNumarasi = new BusRouteModel();

            otobusNumarasi.busNumbersComboBoxDoldur = new List <int>();
            otobusNumarasi.busNumbersComboBoxDoldur = otobusNumarasi.ShowBusNumbers();
            BusModel bus = new BusModel();

            bus.UpdateTheBus(Id);
            var tuple = new Tuple <BusRouteModel, BusModel>(otobusNumarasi, bus);

            return(View(tuple));
        }
Exemple #6
0
        public ActionResult UpdateDrivers(long TC, string Name, string Surname, int Bus_Selection)
        {
            MapModel drivers = new MapModel();

            drivers.error = new List <string>();
            drivers.error = drivers.UpdateDriver(TC, Name, Surname, Bus_Selection);
            BusRouteModel otobusNumarasi = new BusRouteModel();

            otobusNumarasi.busNumbersComboBoxDoldur = new List <int>();
            otobusNumarasi.busNumbersComboBoxDoldur = otobusNumarasi.ShowBusNumbers();
            var tuple = new Tuple <BusRouteModel, MapModel>(otobusNumarasi, drivers);

            return(View(tuple));
        }
Exemple #7
0
        public ActionResult OtobusGuncelle(int Id, string Plaka_No, int Bus_Selection)
        {
            BusModel bus = new BusModel();

            bus.error = new List <string>();
            bus.error = bus.UpdateTheBus(Id, Plaka_No, Bus_Selection);
            BusRouteModel otobusNumarasi = new BusRouteModel();

            otobusNumarasi.busNumbersComboBoxDoldur = new List <int>();
            otobusNumarasi.busNumbersComboBoxDoldur = otobusNumarasi.ShowBusNumbers();
            var tuple = new Tuple <BusRouteModel, BusModel>(otobusNumarasi, bus);

            return(View(tuple));
        }
Exemple #8
0
        public ActionResult DriverOperations(long TC, string Name, string Surname, int Bus_Selection)
        {
            MapModel mapModel = new MapModel();

            mapModel.error = new List <string>();
            mapModel.error = mapModel.InsertTheDriver(TC, Name, Surname, Bus_Selection);
            //ViewBag.mesaj = mesaj; List olduğu için ViewBag kullanamadım
            BusRouteModel otobusNumarasi = new BusRouteModel();

            otobusNumarasi.busNumbersComboBoxDoldur = new List <int>();
            otobusNumarasi.busNumbersComboBoxDoldur = otobusNumarasi.ShowBusNumbers();
            var tuple = new Tuple <BusRouteModel, MapModel>(otobusNumarasi, mapModel);

            return(View(tuple));
        }