Пример #1
0
        public IEnumerable <BrochureView> Get()
        {
            IEnumerable <Brochure> brochureFromDB = _brochureRepository.Get();

            var brochures = Mapper.Map <IEnumerable <Brochure>, List <BrochureView> >(brochureFromDB);

            return(brochures);
        }
Пример #2
0
        public IEnumerable <BookView> Get()
        {
            IEnumerable <Book> books = _bookRepository.Get();

            var bookRes = Mapper.Map <IEnumerable <Book>, List <BookView> >(books);

            return(bookRes);
        }
Пример #3
0
        public IEnumerable <MagazineView> Get()
        {
            IEnumerable <Magazine> magazineFromDB = _magazineRepository.Get();

            var magazines = Mapper.Map <IEnumerable <Magazine>, List <MagazineView> >(magazineFromDB);

            return(magazines);
        }
Пример #4
0
        public PublicHouseViewGetAll Get()
        {
            IEnumerable <PublicHouse> publicHouseDB = _publicHouseRepository.Get();
            var publicHouses = Mapper.Map <IEnumerable <PublicHouse>, List <PublicHouseView> >(publicHouseDB);
            PublicHouseViewGetAll publicHouseViewGet = new PublicHouseViewGetAll();

            publicHouseViewGet.publicHouseList = publicHouses;
            return(publicHouseViewGet);
        }