public GenericRepository(IPhotoLifeEntities dbContext) { if (dbContext == null) { throw new ArgumentNullException("Context cannot be null"); } this.Context = dbContext; }
public UnitOfWork(IPhotoLifeEntities context) { if (context == null) { throw new ArgumentNullException("Context cannot be null"); } this.dbContext = context; }