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

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

            return(View(response.Results));
        }