Commit 3fca6dc4 authored by TTrueBenji's avatar TTrueBenji

refactor

parent 6ddda77e
......@@ -38,9 +38,7 @@ namespace PhoneStore.Services
{
var basket = _context.Baskets.FirstOrDefault(b => b.PhoneId == id);
if (basket is null)
{
return;
}
_context.Baskets.Remove(basket);
_context.SaveChanges();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment