public GenericRepository(HomeApplyContext context) { if (context == null) { throw new ArgumentNullException(nameof(context), $"The parameter dbContext can not be null"); } _context = context; }
public UnitOfWork(HomeApplyContext context) { this.context = context; }