Пример #1
0
        public ActionResult SubscriberDetail(int id)
        {
            AboneViewModel model = new AboneViewModel();

            model = AboneModel(id);
            return(View(model));
        }
Пример #2
0
        public ActionResult SubscriberPaymentList(int id)
        {
            AboneViewModel model = new AboneViewModel();

            model.Abone      = _aboneService.Subscriber(id);
            model.AboneOdeme = _aboneService.GetAllSubscriberPayment(id);
            return(View(model));
        }
Пример #3
0
        public ActionResult SubscriberUpdate(int id)
        {
            AboneViewModel model = new AboneViewModel();

            model           = AboneModel(id);
            model.AracModel = AracModel();
            return(View(model));
        }
Пример #4
0
        public ActionResult SubscriberPaymentInvoice(int id)
        {
            var            abone = _aboneService.SubscriberPayment(id);
            AboneViewModel model = new AboneViewModel();

            model       = AboneModel(Convert.ToInt32(abone.AboneID));
            model.Odeme = _aboneService.SubscriberPayment(id);
            return(View(model));
        }
Пример #5
0
        public AboneViewModel AboneModel(int id)
        {
            AboneViewModel model = new AboneViewModel();

            model.Abone = _aboneService.Subscriber(id);
            model.Uye   = _uyeService.User(Convert.ToInt32(model.Abone.UyeID));
            model.Arac  = _aracService.Car(Convert.ToInt32(model.Abone.AracID));
            model.Marka = _aracService.Brand(Convert.ToInt32(model.Arac.MarkaID));
            model.Model = _aracService.Model(Convert.ToInt32(model.Arac.ModelID));

            return(model);
        }