main
| Line | |
|---|
| 1 | using System.Collections.Generic;
|
|---|
| 2 | using System.Threading.Tasks;
|
|---|
| 3 | using StockMaster.Models;
|
|---|
| 4 |
|
|---|
| 5 | namespace StockMaster.Services
|
|---|
| 6 | {
|
|---|
| 7 | public interface IProductService
|
|---|
| 8 | {
|
|---|
| 9 | Task<List<Product>> GetAllProductsAsync();
|
|---|
| 10 | Task<Product> GetProductByIdAsync(int id);
|
|---|
| 11 | Task<bool> CreateProductAsync(Product product);
|
|---|
| 12 | Task<bool> DeleteProductAsync(int id);
|
|---|
| 13 | Task<List<Product>> GetLowStockProductsAsync();
|
|---|
| 14 |
|
|---|
| 15 | Task<bool> UpdateProductWithUserAsync(Product product, string username);
|
|---|
| 16 | }
|
|---|
| 17 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.