timeRepository and controller work