package at.ac.tuwien.inso.service;

import at.ac.tuwien.inso.entity.Semester;
import at.ac.tuwien.inso.repository.SemesterRepository;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SemesterService {

    @Autowired
    private SemesterRepository semesterRepository;

    public Semester getCurrentSemester() {
        return semesterRepository.findFirstByOrderByIdDesc();
    }

    public Iterable<Semester> getAllSemesters() {
        return semesterRepository.findAllByOrderByIdDesc();
    }
}

@@ -347,16 +347,121 @@
 itory;%0A%0A
+    public Semester create(Semester semester) %7B%0A        return semesterRepository.save(semester);%0A    %7D%0A%0A
     publ

Add create() to semeser service