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)); }
public IActionResult GetAllAboutUs() => Ok(_mapper.Map <List <FarmerAboutUsDTO> >(_aboutUsService.GetAll()));