public ActionResult Index() { int contractorId = LookupRepo.GetLookupByVal("Contractor", CurrentUsername).Id; var jobs = _JobRepo.GetJobStart(contractorId); return(View(new ViewModels.JobViewModel { ContractorId = contractorId, Jobs = jobs })); }
public ActionResult Index() { var vm = new ViewModels.WorkViewModel { Contractor = LookupRepo.GetLookupByVal("Contractor", CurrentUsername) }; Session["Contractor"] = vm.Contractor; prepWork(vm); return(View(vm)); }