Skip to content

Commit

Permalink
Completed task LaunchCode-Education-Archived#1 - get job with ID and …
Browse files Browse the repository at this point in the history
…pass into view.
  • Loading branch information
agfogle committed Dec 10, 2019
1 parent a75f584 commit 63d30fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/TechJobs/Controllers/JobController.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Microsoft.AspNetCore.Mvc;
using TechJobs.Data;
using TechJobs.ViewModels;
using TechJobs.Models;

namespace TechJobs.Controllers
{
Expand All @@ -19,8 +20,10 @@ static JobController()
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 View();
return View(someJob);
}

public IActionResult New()
Expand Down

0 comments on commit 63d30fa

Please sign in to comment.