public async Task <ActionResult> Index() { return(await Task.Run <ActionResult>(() => { var response = _traineeshipSearchMediator.Index(); return View(response.ViewModel); })); }
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); })); }