working customer post, get and delete
This commit is contained in:
19
AB.Persistence/Repos/UnitOfWork.cs
Normal file
19
AB.Persistence/Repos/UnitOfWork.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using AB.Domain.Repositories;
|
||||
|
||||
namespace AB.Persistence.Repos;
|
||||
|
||||
public class UnitOfWork : IUnitOfWork
|
||||
{
|
||||
|
||||
private readonly RepoDbContext _dbContext;
|
||||
|
||||
public UnitOfWork(RepoDbContext dbContext)
|
||||
{
|
||||
_dbContext = dbContext;
|
||||
}
|
||||
|
||||
public Task<int> SaveChangesAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
return _dbContext.SaveChangesAsync(cancellationToken);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user