public GenericRepository(MvcProjesiContext db) { this.db = db; table = db.Set <T>(); }
public GenericRepository() { db = new MvcProjesiContext(); table = db.Set <T>(); }