Skip to content

Commit

Permalink
Merge 2fd3b45 into 9e7c894
Browse files Browse the repository at this point in the history
  • Loading branch information
GTRekter authored Mar 29, 2022
2 parents 9e7c894 + 2fd3b45 commit 5b00508
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apis/dotnet/web/Controllers/ProductController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@ public ProductController(ApplicationDbContext context)
[Route("AddProduct")]
public void AddProduct(Product product)
{
// Introduce a bug
ProductManager.AddProduct(_context, product);
ProductManager.AddProduct(_context, null);
}

[HttpPost]
[Route("DeleteProductById")]
public void DeleteProductById(int id)
{
ProductManager.DeleteProductById(_context, id);
// Temporary comment the following line
//ProductManager.DeleteProductById(_context, id);
}

[HttpGet]
Expand Down

0 comments on commit 5b00508

Please sign in to comment.