コード例 #1
0
        public async Task <ActionResult> Index()
        {
            return(await Task.Run <ActionResult>(() =>
            {
                var response = _traineeshipSearchMediator.Index();

                return View(response.ViewModel);
            }));
        }
コード例 #2
0
        public async Task <ActionResult> Index()
        {
            return(await Task.Run <ActionResult>(() =>
            {
                var candidateId = UserContext == null ? default(Guid?) : UserContext.CandidateId;
                var response = _traineeshipSearchMediator.Index(candidateId);

                return View(response.ViewModel);
            }));
        }