Exemplo n.º 1
0
        public OrderDetail Save(OrderDetail orderDetail)
        {
            var orderDetailRepo = Mapper.Map <OrderDetailRepo>(orderDetail);

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

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

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

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

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

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

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