public IEnumerable <BrochureView> Get() { IEnumerable <Brochure> brochureFromDB = _brochureRepository.Get(); var brochures = Mapper.Map <IEnumerable <Brochure>, List <BrochureView> >(brochureFromDB); return(brochures); }
public IEnumerable <BookView> Get() { IEnumerable <Book> books = _bookRepository.Get(); var bookRes = Mapper.Map <IEnumerable <Book>, List <BookView> >(books); return(bookRes); }
public IEnumerable <MagazineView> Get() { IEnumerable <Magazine> magazineFromDB = _magazineRepository.Get(); var magazines = Mapper.Map <IEnumerable <Magazine>, List <MagazineView> >(magazineFromDB); return(magazines); }
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); }