public SessionsController(SessionRepository repository)
 {
     _repository = repository;
 }