public void AddCarouselContent(AddCarouselContentRequest request)
        {
            var entity = new CarouselContent
            {
                Caption  = request.Caption,
                Header   = request.Header,
                Source   = request.Source,
                IsActive = request.IsActive
            };

            carouselContentRepository.Add(entity);
        }
예제 #2
0
        public IActionResult AddCarouselContent([FromBody] AddCarouselContentRequest request)
        {
            var response = serviceProcessor.Call(advertisementService.AddCarouselContent, request);

            return(Json(response));
        }