Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
 public IEnumerable <MissionEntity> GetAllEntities()
 {
     return(missionRepository.GetAll().Select(mission => mission.GetBllEntity()));
 }