Example #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));
        }
Example #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));
        }
Example #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));
        }
Example #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));
        }
Example #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));
        }
Example #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);
        }
Example #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));
        }
Example #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
        }
Example #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));
        }
Example #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));
        }
Example #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));
        }
Example #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));
        }
Example #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));
        }
Example #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));
        }
Example #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));
        }
Example #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());
        }
Example #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));
        }
Example #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));
        }
Example #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));
        }
Example #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)));
        }
Example #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));
        }
Example #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
        }
Example #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));
        }
Example #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));
        }
Example #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));
        }
Example #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));
        }
Example #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));
        }
Example #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();
        }
Example #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));
        }