Ejemplo n.º 1
0
        public IActionResult Payments(string id)
        {
            List <Subscriber> subscribers = unitOfWork.subscriberService.GetAllWithID(id);

            var model = new AbonentOdemeModel()
            {
                Subscriber           = subscribers[0],
                Payments             = unitOfWork.paymentService.GetAllWithSUBID(id),
                Payment_Descriptions = unitOfWork.payment_DescriptionService.GetAll()
            };

            return(View("GetAllPayments", model));
        }
Ejemplo n.º 2
0
        public IActionResult GetPayment(string id)
        {
            string[] subs            = id.Split('a');
            string   SUBID           = subs[0];
            DateTime DDATE           = Convert.ToDateTime(subs[1]);
            int      CHARGE          = Convert.ToInt32(subs[2]);
            string   FORM_OF_PAYMENT = subs[3];

            List <Subscriber> subscribers = unitOfWork.subscriberService.GetAllWithID(SUBID);
            List <Payment>    payments    = unitOfWork.paymentService.GetAllWithID(SUBID, DDATE, CHARGE, FORM_OF_PAYMENT);

            var model = new AbonentOdemeModel()
            {
                Subscriber           = subscribers[0],
                Payments             = unitOfWork.paymentService.GetAllWithSUBID(SUBID),
                Payment              = payments[0],
                Payment_Descriptions = unitOfWork.payment_DescriptionService.GetAll()
            };

            ViewBag.payment_Description = payments[0].FORM_OF_PAYMENT;
            return(View(model));
        }