-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
aliarmaganuygun
committed
Oct 15, 2024
1 parent
35c6507
commit 776c56d
Showing
4 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
Bulky.DataAccess/Repository/IRepository/IShoppingCardRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using BookBazaar.Models; | ||
|
||
namespace BookBazaar.DataAccess.Repository.IRepository | ||
{ | ||
public interface IShoppingCardRepository : IRepository<ShoppingCart> | ||
{ | ||
void Update(ShoppingCart obj); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using BookBazaar.DataAccess.Data; | ||
using BookBazaar.DataAccess.Repository.IRepository; | ||
using BookBazaar.Models; | ||
|
||
namespace BookBazaar.DataAccess.Repository | ||
{ | ||
public class ShoppingCartRepository : Repository<ShoppingCart>, IShoppingCardRepository | ||
{ | ||
private readonly ApplicationDbContext _db; | ||
|
||
public ShoppingCartRepository(ApplicationDbContext db) : base(db) | ||
{ | ||
_db = db; | ||
} | ||
|
||
public void Update(ShoppingCart obj) | ||
{ | ||
_db.ShoppingCarts.Update(obj); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters