Skip to content

Commit

Permalink
added description in product GET requests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrenormanlang committed Sep 9, 2024
1 parent 0826d71 commit 0438f81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions InventoryManagementSystem/Controllers/ProductController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public async Task<ActionResult<IEnumerable<Product>>> GetProducts()
{
ProductId = p.ProductId,
Name = p.Name,
Description = p.Description,
Price = p.Price,
Quantity = p.Quantity,
CategoryId = p.CategoryId,
Expand All @@ -51,6 +52,7 @@ public async Task<ActionResult<Product>> GetProduct(int id)
{
ProductId = p.ProductId,
Name = p.Name,
Description = p.Description,
Price = p.Price,
Quantity = p.Quantity,
CategoryId = p.CategoryId,
Expand Down

0 comments on commit 0438f81

Please sign in to comment.