public ActionResult Index() { var jobs = jobDAL.FetchAll(); IndexViewModel model = new IndexViewModel(jobs); return(View(model)); }
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)); }