示例#1
0
        public IActionResult About()
        {
            var aboutUsWebSite = _aboutUsService.GetAll();

            var aboutUs = (from i in aboutUsWebSite
                           select new AboutUsModel
            {
                Id = i.Id,
                Content = i.Content,
                Mission = i.Mission,
                Title = i.Title,
                VideoPath = i.VideoPath,
                Vision = i.Vision
            }).FirstOrDefault();

            ViewBag.Blogs = _blogService.GetAll();

            return(View(aboutUs));
        }
示例#2
0
 public IActionResult GetAllAboutUs() => Ok(_mapper.Map <List <FarmerAboutUsDTO> >(_aboutUsService.GetAll()));