public OrderDetail Save(OrderDetail orderDetail) { var orderDetailRepo = Mapper.Map <OrderDetailRepo>(orderDetail); NH.Run(s => s.SaveOrUpdate(orderDetailRepo)); return(Mapper.Map <OrderDetail>(orderDetailRepo)); }
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)); }
public Genre Save(Genre genre) { var genreRepo = Mapper.Map <GenreRepo>(genre); NH.Run(s => s.SaveOrUpdate(genreRepo)); return(Mapper.Map <Genre>(genreRepo)); }
public Album Save(Album album) { var albumRepo = Mapper.Map <AlbumRepo>(album); NH.Run(s => s.SaveOrUpdate(albumRepo)); return(Mapper.Map <Album>(albumRepo)); }
public Cart Save(Cart cart) { var artistRepo = Mapper.Map <CartRepo>(cart); NH.Run(s => s.SaveOrUpdate(cart)); return(Mapper.Map <Cart>(artistRepo)); }
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))); }
public void Delete(Genre genre) { NH.Run(s => s.Delete(Mapper.Map <GenreRepo>(genre))); }
public void Delete(OrderDetail orderDetail) { NH.Run(s => s.Delete(Mapper.Map <OrderDetailRepo>(orderDetail))); }
public void Delete(Album album) { var albumRepo = Mapper.Map <AlbumRepo>(album); NH.Run(s => s.Delete(albumRepo)); }
public void Delete(Cart cart) { NH.Run(s => s.Delete(Mapper.Map <CartRepo>(cart))); }