using BlackRock.Reporting.API.Core; using BlackRock.Reporting.API.Core.Interfaces; namespace BlackRock.Reporting.API.Persistence { public class UnitOfWork : IUnitOfWork { private readonly BRDbContext context; public IUsersRepository UsersRepository { get; set; } public UnitOfWork(BRDbContext context, IUsersRepository usersRepository) { this.UsersRepository = usersRepository; this.context = context; } public async Task SaveChangesAsync() { await context.SaveChangesAsync(); } } }