public void UpdateCarouselIsActive(UpdateCarouselIsActiviteRequest request)
        {
            var entity = carouselContentRepository.FindById(request.Id);

            entity.IsActive = !entity.IsActive;

            carouselContentRepository.Update(entity);
        }
Example #2
0
        public IActionResult UpdateCarouselIsActive([FromBody] UpdateCarouselIsActiviteRequest request)
        {
            var response = serviceProcessor.Call(advertisementService.UpdateCarouselIsActive, request);

            return(Json(response));
        }