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