コード例 #1
0
        public IEnumerable <SponsorshipModel> Get()
        {
            IEnumerable <Sponsorship> sponsorships = _sponsorshipRepository.GetAll();

            return(Mappings.MapToSponsorshipModels(sponsorships, _mapper));
        }
コード例 #2
0
 public IEnumerable <Sponsorship> GetAll() => _sponsorshipRepository.GetAll();