예제 #1
0
        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()));
        }
예제 #2
0
 public ActionResult viewJobs()
 {
     return(View("jobs", JobOpening.GetAllJobs()));
 }