Пример #1
0
        public IActionResult AddJob(int ID)
        {
            JobCustomerVM vm = new JobCustomerVM();

            vm.Customer = customerDAO.GetCustomerByID(ID);
            // vm.Job.CustomerID = ID;
            return(View(vm));
        }
Пример #2
0
        public IActionResult ViewJobs(int ID)
        {
            JobCustomerVM vm = new JobCustomerVM();

            vm.Customer = customerDAO.GetCustomerByID(ID);
            vm.JobList  = jobDAO.GetJobs(ID);
            return(View(vm));
        }