use of repository pattern in mvc 6