start work on generic repository

To end up replacing direct call to dbContext in marks controller