Example #1
0
        public ActionResult Index()
        {
            int contractorId = LookupRepo.GetLookupByVal("Contractor", CurrentUsername).Id;
            var jobs         = _JobRepo.GetJobStart(contractorId);

            return(View(new ViewModels.JobViewModel {
                ContractorId = contractorId, Jobs = jobs
            }));
        }
Example #2
0
        public ActionResult Index()
        {
            var vm = new ViewModels.WorkViewModel {
                Contractor = LookupRepo.GetLookupByVal("Contractor", CurrentUsername)
            };

            Session["Contractor"] = vm.Contractor;
            prepWork(vm);
            return(View(vm));
        }