public ActionResult jobs() { Contact myContact = new Contact(); myContact.SetName(Request.Form["name"]); myContact.SetPhone(Request.Form["phone"]); myContact.SetEmail(Request.Form["email"]); string title = (Request.Form["title"]); string description = (Request.Form["description"]); JobOpening myJob = new JobOpening(title, description, myContact); return(View(JobOpening.GetAllJobs())); }
public ActionResult viewJobs() { return(View("jobs", JobOpening.GetAllJobs())); }