You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UnitOfWork.cs 597B

123456789101112131415161718192021
  1. using BlackRock.Reporting.API.Core;
  2. using BlackRock.Reporting.API.Core.Interfaces;
  3. namespace BlackRock.Reporting.API.Persistence
  4. {
  5. public class UnitOfWork : IUnitOfWork
  6. {
  7. private readonly BRDbContext context;
  8. public IUsersRepository UsersRepository { get; set; }
  9. public UnitOfWork(BRDbContext context, IUsersRepository usersRepository)
  10. {
  11. this.UsersRepository = usersRepository;
  12. this.context = context;
  13. }
  14. public async Task SaveChangesAsync()
  15. {
  16. await context.SaveChangesAsync();
  17. }
  18. }
  19. }