Exemplo n.º 1
0
        public IActionResult GetAll()
        {
            var interviews      = _iInterviewService.GetAll();
            var interviewModels = _iMapper.Map <IList <InterviewModel> >(interviews);
            var count           = interviewModels.Count();

            if (interviewModels != null)
            {
                return(Output(interviewModels, count));
            }
            throw new Exception("没有数据");
        }
Exemplo n.º 2
0
 // GET: Interview
 public ActionResult Index()
 {
     return(View(intService.GetAll().ToList()));
 }
Exemplo n.º 3
0
        public async Task <ActionResult> List()
        {
            var interviews = await _interviewService.GetAll();

            return(View("InterviewList", interviews));
        }