/// <inheritdoc /> public async Task <bool> DeleteProduct(int id) { Product toDelete = await GetProduct(id); if (toDelete == default) { return(false); } _context.Remove(toDelete); await _context.SaveChangesAsync(); await ReseedIdentifier(); return(true); }