예제 #1
0
        public async Task <IActionResult> GetInstallers()
        {
            var response = await _installerService.GetInstallers();

            if (response.Success)
            {
                return(Ok(response.Results));
            }
            else
            {
                return(BadRequest(response.ErrorMessage));
            }
        }
예제 #2
0
        public async Task <IActionResult> Index()
        {
            var response = await _installerService.GetInstallers();

            return(View(response.Results));
        }