main
Last change
on this file since c3268ca was c3268ca, checked in by Stefan Risteski <stefanristeski2001@…>, 9 months ago |
Project
The whole Project
|
-
Property mode
set to
100644
|
File size:
681 bytes
|
Line | |
---|
1 | package com.example.kvizko.service.impl;
|
---|
2 |
|
---|
3 | import com.example.kvizko.models.Attempt;
|
---|
4 | import com.example.kvizko.models.ResultTable;
|
---|
5 | import com.example.kvizko.repository.ResultRepository;
|
---|
6 | import com.example.kvizko.service.ResultService;
|
---|
7 | import org.springframework.stereotype.Service;
|
---|
8 |
|
---|
9 | @Service
|
---|
10 | public class ResultServiceImpl implements ResultService {
|
---|
11 |
|
---|
12 | private final ResultRepository resultRepository;
|
---|
13 |
|
---|
14 | public ResultServiceImpl(ResultRepository resultRepository) {
|
---|
15 | this.resultRepository = resultRepository;
|
---|
16 | }
|
---|
17 |
|
---|
18 | @Override
|
---|
19 | public ResultTable save(Attempt attempt, long points) {
|
---|
20 | return resultRepository.save(new ResultTable(attempt, points));
|
---|
21 | }
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.