public async Task <InterviewRoundListDetailModel> Handle(GetInterviewRoundListDetailQuery request, CancellationToken cancellationtoken) { IEnumerable <InterviewRound> listOfInterviewRound; listOfInterviewRound = await _context.GetAll(); return(new InterviewRoundListDetailModel { interviewRoundList = _mapper.Map <IEnumerable <InterviewRound> >(listOfInterviewRound) }); }
public JsonResult Index() { var apiResult = TryExecute(() => _interviewRoundRepository.GetAll(), "Interviews Fetched sucessfully"); return(Json(apiResult, JsonRequestBehavior.AllowGet)); }