Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 4
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 requestedJob = jobData.Find(id); //stores Job object (peek definition of Find to see the method in the Job class

            return(View(requestedJob));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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);
        }
Esempio n. 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));
        }
Esempio n. 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
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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());
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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)));
        }
Esempio n. 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));
        }
Esempio n. 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
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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();
        }
Esempio n. 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));
        }