public ActionResult JobList() { List <JobOpening> allJobs = JobOpening.GetAll(); return(View(allJobs)); // List<JobOpening> salesJobs = JobOpening.GetSales(); // List<JobOpening> softwareJobs = JobOpening.GetSoftware(); // List<JobOpening> marketingJobs = JobOpening.GetMarketing(); }
public ActionResult Create() { JobOpening allJobs = new JobOpening(Request.Form["new-title"], Request.Form["new-description"], Request.Form["new-contactInfo"]); allJobs.Save(); List <JobOpening> allJobss = JobOpening.GetAll(); return(View("Index", allJobss)); }
public ActionResult Create() { string newJobTitle = Request.Form["title"]; string newJobDescription = Request.Form["description"]; string newJobContact = Request.Form["contact"]; JobOpening newJobOpening = new JobOpening(newJobTitle, newJobDescription, newJobContact); newJobOpening.Save(); List <JobOpening> allJobs = JobOpening.GetAll(); return(View("Index", allJobs)); }
public ActionResult Index() { List <JobOpening> allItems = JobOpening.GetAll(); return(View(allItems)); }
public IActionResult Listings() { List <JobOpening> allJobs = JobOpening.GetAll(); return(View(allJobs)); }
public ActionResult Index() { return(View(JobOpening.GetAll())); }
public ActionResult Index() { List <JobOpening> allItems = JobOpening.GetAll(); //static method called on the class as opposed to the instance of the object return(View(allItems)); }
public ActionResult Index() { List <JobOpening> jobs = JobOpening.GetAll(); return(View(jobs)); }