Agribusiness.Web.Controllers.MailingListController.GetList C# (CSharp) Метод

GetList() публичный Метод

Gets a list of mailing list to show in a drop down
public GetList ( int seminarId ) : JsonNetResult
seminarId int
Результат JsonNetResult
        public JsonNetResult GetList(int seminarId)
        {
            var result = _mailinglistRepository.Queryable.Where(a => (a.Seminar == null || a.Seminar.Id == seminarId) && !_systemLists.Contains(a.Name));

            return new JsonNetResult(result.Select(a => new {Id=a.Id, Label=a.Name}));
        }