Exemple #1
0
        public OrderDetail Save(OrderDetail orderDetail)
        {
            var orderDetailRepo = Mapper.Map <OrderDetailRepo>(orderDetail);

            NH.Run(s => s.SaveOrUpdate(orderDetailRepo));
            return(Mapper.Map <OrderDetail>(orderDetailRepo));
        }
Exemple #2
0
        public Artist Save(Artist artist)
        {
            var artistRepo = Mapper.Map <ArtistRepo>(artist);

            NH.Run(s => s.SaveOrUpdate(artistRepo));
            return(Mapper.Map <Artist>(artistRepo));
        }
        public Order Save(Order genre)
        {
            var orderRepo = Mapper.Map <OrderRepo>(genre);

            NH.Run(s => s.SaveOrUpdate(orderRepo));
            return(Mapper.Map <Order>(orderRepo));
        }
Exemple #4
0
        public Genre Save(Genre genre)
        {
            var genreRepo = Mapper.Map <GenreRepo>(genre);

            NH.Run(s => s.SaveOrUpdate(genreRepo));
            return(Mapper.Map <Genre>(genreRepo));
        }
Exemple #5
0
        public Album Save(Album album)
        {
            var albumRepo = Mapper.Map <AlbumRepo>(album);

            NH.Run(s => s.SaveOrUpdate(albumRepo));
            return(Mapper.Map <Album>(albumRepo));
        }
Exemple #6
0
        public Cart Save(Cart cart)
        {
            var artistRepo = Mapper.Map <CartRepo>(cart);

            NH.Run(s => s.SaveOrUpdate(cart));
            return(Mapper.Map <Cart>(artistRepo));
        }
Exemple #7
0
 public void Delete(Artist artist)
 {
     NH.Run(s => s.Delete(Mapper.Map <ArtistRepo>(artist)));
 }
 public void Delete(Order order)
 {
     NH.Run(s => s.Delete(Mapper.Map <OrderRepo>(order)));
 }
Exemple #9
0
 public void Delete(Genre genre)
 {
     NH.Run(s => s.Delete(Mapper.Map <GenreRepo>(genre)));
 }
Exemple #10
0
 public void Delete(OrderDetail orderDetail)
 {
     NH.Run(s => s.Delete(Mapper.Map <OrderDetailRepo>(orderDetail)));
 }
Exemple #11
0
        public void Delete(Album album)
        {
            var albumRepo = Mapper.Map <AlbumRepo>(album);

            NH.Run(s => s.Delete(albumRepo));
        }
Exemple #12
0
 public void Delete(Cart cart)
 {
     NH.Run(s => s.Delete(Mapper.Map <CartRepo>(cart)));
 }