示例#1
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view
            Job jobId = jobData.Find(id);

            return(View(jobId));
        }
示例#2
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            //Get the Job with the given ID and pass it into the view
            Job aJob = jobData.Find(id);

            return(View(aJob));
        }
示例#3
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view Done
            Job someJobs = jobData.Find(id);

            return(View(someJobs));
        }
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view
            Job requestedJob = jobData.Find(id); //stores Job object (peek definition of Find to see the method in the Job class

            return(View(requestedJob));
        }
示例#5
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            Job jobnew = jobData.Find(id);


            return(View(jobnew));
        }
示例#6
0
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view


            if (id != 99999)
            {
                job = jobData.Find(id);
            }


            List <Job> jobList = new List <Job>();

            jobList.Add(job);

            SearchJobsViewModel jobViewModel = new SearchJobsViewModel();

            jobViewModel.Jobs = jobList;

            jobViewModel.Title = "Specific Job";

            jobData.Jobs.Add(job);

            return(View(jobViewModel));
        }
示例#7
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            Job result = jobData.Find(id);


            return View(result);
        }
示例#8
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            Job job = new Job();

            job = jobData.Find(id);
            return(View(job));
        }
示例#9
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // get the Job with the given ID and pass it into the view


            return(View(jobData.Find(id))); //just pass this jobData method as a parameter in the view to find the id
        }
示例#10
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 -  DONE get the Job with the given ID and pass it into the view

            Job result = jobData.Find(id);

            return(View(result));
        }
示例#11
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            var getJob = jobData.Find(id);



            return(View(getJob));
        }
示例#12
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view
            //var job = new Job { jobData = "Job " + id };
            Job aJob = jobData.Find(id);

            return(View(aJob));
        }
示例#13
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view
            Job job = jobData.Find(id);

            //DisplayJobViewModel viewModel = new DisplayJobViewModel(job);
            return(View(job));
        }
示例#14
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view
            SearchJobsViewModel jobsViewModel = new SearchJobsViewModel();

            jobsViewModel.Jobs = jobData.Find(id);
            return(View("Index", jobsViewModel));
        }
示例#15
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view
            //liklely not working
            Models.Job selectedJob = jobData.Find(id);

            return(View(selectedJob));
        }
示例#16
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view
            Job job = jobData.Find(id);

            job.Title = "New Job Listing";
            return(View(job));
        }
示例#17
0
        // The detail display for a given Job at URLs like /Job?id=17

        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view

            ViewBag.Columns = jobData.Find(id);

            return(View());
        }
示例#18
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            Job data = jobData.Find(id);

            // TODO #1 - get the Job with the given ID and pass it into the view

            return(View(data));
        }
示例#19
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1X - get the Job with the given ID and pass it into the view
            JobData jobData = JobData.GetInstance();
            Job     job     = jobData.Find(id);

            return(View(job));
        }
示例#20
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view
            //JobFieldsViewModel jobFieldsViewModel = new JobFieldsViewModel();
            Job job = jobData.Find(id);

            return(View(job));
        }
示例#21
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 COMPLETED - get the Job with the given ID and pass it into the view

            //  we are using the Job object as the ViewModel and passing it
            //  into the Index view
            return(View(jobData.Find(id)));
        }
示例#22
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // DONE #1 - get the Job with the given ID and pass it into the view

            Job singleJob = jobData.Find(id);

            return(View(singleJob));
        }
示例#23
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view
            Job sendJob = jobData.Find(id);

            return(View(sendJob));
            //This should be a viewmodel, maybe
        }
示例#24
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view
            JobData theJobs = JobData.GetInstance();
            Job     aJob    = theJobs.Find(id);

            return(View(aJob));
        }
示例#25
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view

            Job singleJob = jobData.Find(id);  //Took from example, not sure it is correct.

            return(View(singleJob));
        }
示例#26
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view
            Job givenJob = new Job();

            givenJob = jobData.Find(id);

            return(View(givenJob));
        }
示例#27
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view
            List <Job> idJob  = new List <Job>();
            Job        oneJob = jobData.Find(id);

            idJob.Add(oneJob);
            return(View(idJob));
        }
示例#28
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view
            SearchJobsViewModel jobsViewModel = new SearchJobsViewModel();

            jobsViewModel.job   = jobData.Find(id);
            jobsViewModel.Title = "job(s) for:";
            return(View(jobsViewModel));
        }
示例#29
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view
            Job someJob = jobData.Find(id);

            return(RedirectToAction("Job", new { Id = id }));

            //return View();
        }
示例#30
0
        // The detail display for a given Job at URLs like /Job?id=17
        public IActionResult Index(int id)
        {
            // TODO #1 - get the Job with the given ID and pass it into the view
            Job somejob = jobData.Find(id);

            //Type not appropriate for JobFieldsViewModel
            //if somejob fed in: "The model item passed into the ViewDataDictionary is of type 'TechJobs.Models.Job', but this ViewDataDictionary instance requires a model item of type 'TechJobs.ViewModels.JobFieldsViewModel'.
            return(View(somejob));
        }