Example #1
0
        public ActionResult Index()
        {
            var            jobs  = jobDAL.FetchAll();
            IndexViewModel model = new IndexViewModel(jobs);

            return(View(model));
        }
Example #2
0
        public ActionResult Create()
        {
            CreateViewModel model = new CreateViewModel(jobDAL.FetchAll());

            model.Jobs = jobDAL.FetchAll(); //fetches all the jobs a user can select from
            return(View(model));
        }