Ignore:
Timestamp:
02/04/23 21:01:13 (22 months ago)
Author:
milamihajlovska <mila.mihajlovska01@…>
Branches:
master
Children:
693f587
Parents:
a554435
Message:

home controller added mappings for add new film, event and projection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/service/Impl/EventServiceImpl.java

    ra554435 r302b233  
    66import org.springframework.stereotype.Service;
    77
     8import java.time.LocalDate;
    89import java.util.List;
    910
     
    2021        return eventRepository.findAll();
    2122    }
     23
     24    @Override
     25    public Event save(LocalDate start_date, String theme, String duration, String repeating) {
     26        return eventRepository.save(new Event(theme,duration,repeating,start_date));
     27    }
    2228}
Note: See TracChangeset for help on using the changeset viewer.