Exemplo n.º 1
0
        public async Task <IActionResult> Edit(int id)
        {
            if (id < 1)
            {
                return(NotFound());
            }
            var slider = await _homePageSliderService.GetUpdateDto(id);

            if (slider.ResultStatus == ResultStatus.Success)
            {
                return(View(slider.Data));
            }
            if (slider.ResultStatus == ResultStatus.Error)
            {
                return(NotFound());
            }
            return(View());
        }