Skip to content

Commit

Permalink
undo previous commit (dotnet#5787)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdykstra authored Mar 23, 2018
1 parent d069d5d commit 1ad521a
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,25 @@ public GenericRepository<Department> DepartmentRepository
{
get
{
return this.departmentRepository ?? new GenericRepository<Department>(context);

if (this.departmentRepository == null)
{
this.departmentRepository = new GenericRepository<Department>(context);
}
return departmentRepository;
}
}

public GenericRepository<Course> CourseRepository
{
get
{
return this.courseRepository ?? new GenericRepository<Course>(context);

if (this.courseRepository == null)
{
this.courseRepository = new GenericRepository<Course>(context);
}
return courseRepository;
}
}

Expand Down

0 comments on commit 1ad521a

Please sign in to comment.