public async Task <IActionResult> GetInformationList()
        {
            try
            {
                var response = await _service.GetInformationList();

                if (response != null)
                {
                    return(Ok(response));
                }
                return(StatusCode(StatusCodes.Status204NoContent));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public IViewComponentResult Invoke()
        {
            MenuViewModel model = new MenuViewModel();

            IEnumerable <ProductCategoryPageDTO> productCategoryDTOs = _productService.GetProductCategoryList();
            IMapper productMapper = new MapperConfiguration(cfg => cfg.CreateMap <ProductCategoryPageDTO, ProductListPageViewModel>()).CreateMapper();
            IEnumerable <ProductListPageViewModel> productCateories = productMapper.Map <IEnumerable <ProductListPageViewModel> >(productCategoryDTOs);

            model.ProductCateories = productCateories;

            IEnumerable <InformationPageDTO> informationDTOs = _informationService.GetInformationList();
            IMapper informationMapper = new MapperConfiguration(cfg => cfg.CreateMap <InformationPageDTO, InformationPageViewModel>()).CreateMapper();
            IEnumerable <InformationPageViewModel> informationList = informationMapper.Map <IEnumerable <InformationPageViewModel> >(informationDTOs);

            model.Informations = informationList;

            return(View(model));
        }