예제 #1
0
        public IActionResult Index()
        {
            var agents = _homeRepository.GetAllAgents();
            var model  = _mapper.Map <IEnumerable <Agent>, IEnumerable <AgentViewModel> >(agents);

            return(View(model));
        }