コード例 #1
0
ファイル: PortalController.cs プロジェクト: xprasoulas/grid
 public ActionResult JobOpenings()
 {
     return(RedirectIfNotLoggedIn(() =>
     {
         var jobOpenings = _jobOpeningRepository.GetAllBy(j => j.OpeningStatus == JobOpeningStatus.Open, j => j.OrderByDescending(d => d.CreatedOn)).ToList();
         return View(jobOpenings);
     }));
 }
コード例 #2
0
        public ActionResult Openings()
        {
            var jobOpenings = _jobOpeningRepository.GetAllBy(j => j.OpeningStatus == JobOpeningStatus.Open, j => j.OrderByDescending(d => d.CreatedOn)).ToList();

            return(View(jobOpenings));
        }
コード例 #3
0
        public ActionResult Index()
        {
            var openings = _jobOpeningRepository.GetAllBy(j => j.OpeningStatus == JobOpeningStatus.Open);

            return(Json(openings, JsonRequestBehavior.AllowGet));
        }