示例#1
0
        public IEnumerable <Product> GetUserProducts(int userId)
        {
            var repo         = new UserProductsRepository();
            var userproducts = repo.GetUserProducts(userId);

            return(userproducts);
        }
示例#2
0
        public void Delete(int userProductId)
        {
            var repo = new UserProductsRepository();

            repo.DeleteUserProducts(userProductId);
        }
示例#3
0
        public void Create(AddUserProductsCommand newUserProducts)
        {
            var repo = new UserProductsRepository();

            repo.AddUserProducts(newUserProducts);
        }
示例#4
0
        public IEnumerable <UserProducts> GetAllProducts()
        {
            var repo = new UserProductsRepository();

            return(repo.GetAll());
        }