public Repository(ISmartHiveEntities dbContext) { if (dbContext == null) { throw new ArgumentNullException("Context cant be null"); } this.Context = dbContext; }
public UnitOfWork(ISmartHiveEntities dbContext) { if (dbContext == null) { throw new ArgumentNullException("Context cant be null"); } this.dbContext = dbContext; }