Esempio n. 1
0
        public async Task <IActionResult> Index()
        {
            var sliders = await _homePageSliderService.GetAllByNonDeleteAndActive();

            if (sliders.ResultStatus == ResultStatus.Error)
            {
                return(NotFound());
            }
            if (sliders.ResultStatus == ResultStatus.Success)
            {
                ViewBag.Home = "active";
                return(View(sliders.Data));
            }
            return(NotFound());
        }