Exemplo n.º 1
0
        public IActionResult AboutUs()
        {
            AboutUsVm aboutUsVm = new AboutUsVm
            {
                Company = _work.Companies.FirstOrDefault(),

                aboutUs = _work.AboutUs.GetWithAboutUs(),

                about = _work.AboutUs.GetWithAbout(),

                OurTeamvm = _work.OurTeams.TeamWithUs(),

                Teams = _work.OurTeams.GetAllWithDepartmentAndDesignation(),

                TotalSoftware = _work.Softwares.GetAll(),

                clientSayus = _work.Client.GetAll().TakeLast(3).ToList(),
            };


            aboutUsVm.teamVmList = _work.OurTeams.GetAllWithDepartmentAndDesignation().OrderBy(x => x.Order).Select(x => new OurTeamVM()
            {
                Name = x.Name, DepartmentName = x.Department.Name.ToString(), DesignationName = x.Designation.Name.ToString(), Image = x.Image, Description = x.Description, Facebook = x.Facebook, Twitter = x.Twitter, LinkedIn = x.LinkedIn
            }).ToList();
            return(View(aboutUsVm));
        }
        public IActionResult AboutUs()
        {
            AboutUsVm aboutUsVm = new AboutUsVm
            {
                Company = _work.Companies.FirstOrDefault(),
                aboutUs = _work.AboutUs.GetWithAboutUs(),
                about   = _work.AboutUs.GetWithAbout(),
            };

            return(View(aboutUsVm));
        }