コード例 #1
0
        public IActionResult ViewTopAgents()
        {
            var response = reportRepo.GetTopAgents();

            if (response.Success)
            {
                return(View(response.Data));
            }
            else
            {
                return(BadRequest(response.Message));
            }
        }
コード例 #2
0
        public IActionResult TopAgent()
        {
            var data = _repoRepository.GetTopAgents();

            return(View(data.Data));
        }