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/FilmServiceImpl.java

    ra554435 r302b233  
    66import org.springframework.stereotype.Service;
    77
     8import java.time.LocalDate;
    89import java.util.List;
    910
     
    2021        return filmRepository.findAll();
    2122    }
     23
     24    @Override
     25    public Film save(String name, Integer duration, String actors, String genre, String age_category, String url, String director, LocalDate start_date, LocalDate end_date) {
     26        return filmRepository.save(new Film(name,duration,actors,genre,age_category,url,director,start_date,end_date));
     27    }
    2228}
Note: See TracChangeset for help on using the changeset viewer.