naming
This commit is contained in:
@@ -28,8 +28,13 @@ namespace Webshop.Infrastructure.Repositories
|
||||
|
||||
public async Task AddProductAsync(Product product)
|
||||
{
|
||||
_context.Products.Add(product);
|
||||
await _context.SaveChangesAsync(); // Wichtig: Änderungen speichern
|
||||
await _context.Products.AddAsync(product);
|
||||
await _context.SaveChangesAsync();
|
||||
}
|
||||
|
||||
public async Task<bool> ProductExistsBySlugAsync(string slug)
|
||||
{
|
||||
return await _context.Products.AnyAsync(p => p.Slug == slug);
|
||||
}
|
||||
|
||||
public async Task UpdateProductAsync(Product product)
|
||||
|
||||
Reference in New Issue
Block a user