public void Create(PublicHouseView publicHousesView) { var publicHouses = Mapper.Map <PublicHouseView, PublicHouse>(publicHousesView); _publicHouseRepository.Create(publicHouses); }
public void Create(BrochureView brochureView) { var brochure = Mapper.Map <BrochureView, Brochure>(brochureView); _brochureRepository.Create(brochure); }
public void Create(BookView book) { var bookUpdate = Mapper.Map <BookView, Book>(book); _bookRepository.Create(bookUpdate); }
public void Create(MagazineView magazineView) { var magazine = Mapper.Map <MagazineView, Magazine>(magazineView); _magazineRepository.Create(magazine); }