Agribusiness.Web.Controllers.PublicController.SteeringCommittee C# (CSharp) Method

SteeringCommittee() public method

public SteeringCommittee ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult SteeringCommittee()
        {
            var seminar = SiteService.GetLatestSeminar(Site);
            var role = _seminarRoleRepository.GetNullableById(StaticIndexes.Role_SteeringCommittee);

            if (seminar != null && role != null)
            {
                var committee = seminar.SeminarPeople.Where(a => a.SeminarRoles.Contains(role)).OrderBy(a => a.Person.LastName);

                return View(committee.Select(a => new DisplayPerson() {Firm = a.Firm, Person = a.Person, Title = a.Title, Seminar = seminar}).ToList());
            }

            return View();
        }