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)
            });
        }
Example #2
0
        public JsonResult Index()
        {
            var apiResult = TryExecute(() => _interviewRoundRepository.GetAll(), "Interviews Fetched sucessfully");

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