public IEnumerable <Product> GetUserProducts(int userId) { var repo = new UserProductsRepository(); var userproducts = repo.GetUserProducts(userId); return(userproducts); }
public void Delete(int userProductId) { var repo = new UserProductsRepository(); repo.DeleteUserProducts(userProductId); }
public void Create(AddUserProductsCommand newUserProducts) { var repo = new UserProductsRepository(); repo.AddUserProducts(newUserProducts); }
public IEnumerable <UserProducts> GetAllProducts() { var repo = new UserProductsRepository(); return(repo.GetAll()); }