public BaseRepository()
        {
            IDbContextFactory dbFactory = new DbContextFactory();

            db = dbFactory.GetCurrentThreadInstance();
        }