public IActionResult About() { var mission = _missionRepo.GetAll().ToList().FirstOrDefault(); ViewBag.OurMission = HttpUtility.HtmlDecode(mission.OurMission); ViewBag.SelectiveTab = "about"; ViewData["Message"] = "Your application description page."; //Get Team Members var members = _memberRepo.GetAll().ToList(); foreach (var m in members) { m.Description = HttpUtility.HtmlDecode(m.Description); } ViewBag.Members = members; return(View()); }
public IEnumerable <MissionEntity> GetAllEntities() { return(missionRepository.GetAll().Select(mission => mission.GetBllEntity())); }