public void CodeController(long rid, string cod, bool success, long time) { dataRepository.AddCode(new Code(rid, cod, success, time)); }