Beispiel #1
0
        public ActionResult Index()
        {
            CustomerRepo    customerRepo    = new CustomerRepo();
            ItemRepo        itemRepo        = new ItemRepo();
            PaymentTypeRepo paymentTypeRepo = new PaymentTypeRepo();

            var multiModels = new Tuple <IEnumerable <SelectListItem>, IEnumerable <SelectListItem>, IEnumerable <SelectListItem> >
                                  (customerRepo.GetAllCustomers(), itemRepo.GetAllItems(), paymentTypeRepo.GetAllPaymentTypes());

            return(View(multiModels));
        }
        public IActionResult GetAllPaymentTypes()
        {
            var allPaymentTypes = _repository.GetAllPaymentTypes();

            return(Ok(allPaymentTypes));
        }