コード例 #1
0
 public IActionResult CreateEntry()
 {
     return(View(new CreateEntryViewModel {
         Drivers = _driverRepo.GetAllDrivers(),
         Shippers = _shipperRepo.GetAllShippers(),
         Customers = _customerRepo.GetAllCustomer(),
         Consignees = _consigneeRepo.GetAllConsignee()
     }));
 }
コード例 #2
0
        public IActionResult Index()
        {
            var model = _customerRepo.GetAllCustomer();

            return(View(model));
        }
コード例 #3
0
 public IEnumerable <Customer> GetAllCustomer()
 {
     return(_customerRepo.GetAllCustomer());
 }