Implemented repository using Entity Framework