public List <MediumModel> Execute(int museumId)
        {
            var media = mediumRepository.GetAll()
                        .Where(m => m.MuseumId == museumId)
                        .Select(m => new MediumModel
            {
                Id   = m.Id,
                Name = m.Name
            });

            return(media.ToList());
        }
Beispiel #2
0
 /// <summary>
 /// 获取系统中所有的介质
 /// </summary>
 IEnumerable <Medium> IMediumMgr.GetAll()
 {
     return(_mediumRepository.GetAll().ToList());
 }
Beispiel #3
0
 public IQueryable <Medium> GetMedia()
 {
     return(mediumRepository.GetAll());
 }