Update Generic Repository