mirror of
https://github.com/fergalmoran/podnoms.git
synced 2026-01-23 17:05:13 +00:00
15 lines
404 B
C#
15 lines
404 B
C#
using System.Threading.Tasks;
|
|
using PodNoms.Api.Persistence;
|
|
|
|
namespace PodNoms.Api.Persistence {
|
|
public class UnitOfWork : IUnitOfWork {
|
|
private readonly PodnomsDbContext _context;
|
|
public UnitOfWork(PodnomsDbContext context) {
|
|
this._context = context;
|
|
|
|
}
|
|
public async Task CompleteAsync() {
|
|
await _context.SaveChangesAsync();
|
|
}
|
|
}
|
|
} |