Ignore:
Timestamp:
02/06/23 20:10:28 (22 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
d09caa7
Parents:
b5ce654
Message:

Adding Events To Home Page

Location:
src/main/java/com/example/moviezone/service
Files:
2 edited

Legend:

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

    rb5ce654 r0fb69cc  
    88public interface EventService {
    99    List<Event> findAllEvents();
    10     Event save(LocalDate start_date,String theme,String duration,String repeating);
     10    Event save(LocalDate start_date,String theme,String duration,String repeating,String url);
    1111}
  • src/main/java/com/example/moviezone/service/Impl/EventServiceImpl.java

    rb5ce654 r0fb69cc  
    2323
    2424    @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));
     25    public Event save(LocalDate start_date, String theme, String duration, String repeating,String img_url) {
     26        return eventRepository.save(new Event(theme,duration,repeating,start_date,img_url));
    2727    }
    2828}
Note: See TracChangeset for help on using the changeset viewer.