Files
monorepo/LCU.API.Collections.RepoApi-old/LCU.Shared.Collections.RepoApiLib/Repositories/UnitOfWork.cs
T
2026-04-20 14:47:24 -05:00

20 lines
460 B
C#

using System.Threading.Tasks;
using LCU.Shared.Collections.RepoApiLib.Persistence;
namespace LCU.Shared.Collections.RepoApiLib.Repositories
{
public class UnitOfWork : IUnitOfWork
{
private readonly AppDbContext _context;
public UnitOfWork(AppDbContext context)
{
_context = context;
}
public async Task CompleteAsync()
{
await _context.SaveChangesAsync();
}
}
}