An ASP.NET Core MVC project for managing products in an inventory system. This application uses Dapper for data access and provides a set of features to manage products and their categories.
- π View a list of all products.
- π¦ View details of a single product.
- βοΈ Update product information.
- β Insert new products into the inventory.
- β Delete products from the inventory.
- π Find products based on categories.
- π View the best-selling product.
- ASP.NET Core MVC: Framework for building the web application.
- Dapper: Micro ORM for data access.
- SQL: Database operations are performed using SQL queries.
- View All Products: Navigate to
/Product/Indexto see a list of all products. - View Product Details: Navigate to
/Product/ViewProduct/{id}where{id}is the ID of the product. - Update Product: Navigate to
/Product/UpdateProduct/{id}to edit a product's details. - Insert New Product: Navigate to
/Product/InsertProductto add a new product to the inventory. - Delete Product: Products can be deleted from the list view or by navigating to the product's details page.
- Find Products: Navigate to
/Product/FindAProductto search for products based on categories. - Best Selling Product: Navigate to
/Product/BestSellingProductto view the product with the highest sales.
| Method | Endpoint | Description |
|---|---|---|
| GET | /Product/Index | List all products |
| GET | /Product/ViewProduct/{id} | View details of a single product |
| GET | /Product/UpdateProduct/{id} | Edit details of a product |
| POST | /Product/UpdateProductToDatabase | Update product details in the database |
| GET | /Product/InsertProduct | Form to insert a new product |
| POST | /Product/InsertProductToDatabase | Insert a new product into the database |
| POST | /Product/DeleteProduct | Delete a product from the database |
| GET | /Product/FindAProduct | Find products based on categories |
| GET | /Product/BestSellingProduct | View the best-selling product |
Contributions are welcome! Please follow these steps:
- Fork the repository and clone it to your local machine.
- Create a new branch for your feature or bug fix.
- Make your changes and ensure they are well-tested.
- Submit a pull request with a clear description of your changes.
This project is licensed under the MIT License.