Пример #1
0
        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();
        }
Пример #2
0
        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));
        }
Пример #3
0
        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));
        }
Пример #4
0
        public ActionResult Index()
        {
            List <JobOpening> allItems = JobOpening.GetAll();

            return(View(allItems));
        }
Пример #5
0
        public IActionResult Listings()
        {
            List <JobOpening> allJobs = JobOpening.GetAll();

            return(View(allJobs));
        }
 public ActionResult Index()
 {
     return(View(JobOpening.GetAll()));
 }
Пример #7
0
        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));
        }
Пример #8
0
        public ActionResult Index()
        {
            List <JobOpening> jobs = JobOpening.GetAll();

            return(View(jobs));
        }