Example #1
0
 public IActionResult ClientsLogoList()
 {
     return(View(new ClientsLogoList()
     {
         ClientsLogos = _clientsLogoService.GetAll()
     }));
 }
Example #2
0
        public IActionResult Index()
        {
            var         aboutEntity   = _aboutService.GetAbout();
            List <News> newsModelList = _newsService.GetAll().TakeLast(3).ToList();

            var serviceList = _aboutServicesService.GetAll();

            var clientsLogoList = _clientsLogoService.GetAll();

            return(View(new HomeModel()
            {
                Sliders = _sliderService.GetAll(),
                InfoModel = GetInfo(),
                AboutModel = new AboutModel()
                {
                    AboutTitle = aboutEntity.AboutTitle,
                    AboutDescription = aboutEntity.AboutDescription,
                    Founder = aboutEntity.Founder,
                    Rank = aboutEntity.Rank,
                    YoutubeUrl = aboutEntity.YoutubeUrl,
                    YoutubeHomeImageUrl = aboutEntity.YoutubeHomeImageUrl,
                    Mission = aboutEntity.Mission,
                    Vision = aboutEntity.Vision,
                    WorkProcess = aboutEntity.WorkProcess
                },
                NewsListModel = newsModelList,
                Services = serviceList,
                ClientsLogos = clientsLogoList
            }));
        }