Example #1
0
 public ActionResult SortJob(string type)
 {
     HIndexViewModel model = new HIndexViewModel();
     model.jobList = homeUnitOfWork.getAllJobAreSorted(type);
     int length = model.jobList.Count();
     return PartialView("JobPartial", model);
 }
Example #2
0
 public ActionResult Find(HIndexViewModel model)
 {
     JFindViewModel jFindViewModel = new JFindViewModel();
     jFindViewModel.searchString = model.searchString;
     jFindViewModel.minSalary = model.minSalary;
     jFindViewModel.schoolLevel = model.schoolLevel;
     TempData["searchJobCities"] = model.searchJobCities;
     TempData["searchJobCategories"] = model.searchJobCategories;
     return RedirectToAction("Find", "Job", jFindViewModel);
 }
Example #3
0
        public ActionResult Index()
        {
            HIndexViewModel hIndexViewModel = new HIndexViewModel();
            hIndexViewModel.jobList = homeUnitOfWork.getAllJob();
            hIndexViewModel.jobCities = homeUnitOfWork.getAllCities();
            hIndexViewModel.jobCategories = homeUnitOfWork.getAllCategories();
            hIndexViewModel.schoolLevelList = homeUnitOfWork.getAllSchoolLevel();
            hIndexViewModel.purchaseAdvertiseTypeA = homeUnitOfWork.getPurchaseAdvertise("A");
            hIndexViewModel.purchaseAdvertiseTypeB = homeUnitOfWork.getPurchaseAdvertise("B");
            hIndexViewModel.purchaseAdvertiseTypeC = homeUnitOfWork.getPurchaseAdvertise("C");
            hIndexViewModel.topicList = homeUnitOfWork.GetAllTopic();
            //var a = homeUnitOfWork.getPurchaseAdvertise("A").ToArray() ;
            //var b = homeUnitOfWork.getPurchaseAdvertise("B").ToArray();
            //var c = homeUnitOfWork.getPurchaseAdvertise("C").ToArray();

            return View(hIndexViewModel);
        }