Files
podnoms/server/Persistence/UnitOfWork.cs
Fergal Moran 8d69c72b83 Merge Repos
2017-10-30 20:42:23 +00:00

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();
}
}
}