public void Edit(MovieProp movie)
 {
     _dataContext.Movies.Update(movie);
     _dataContext.SaveChanges();
 }
 public ActionResult <MovieProp> AddMovie(MovieProp movie)
 {
     _moviePropService.Add(movie);
     return(CreatedAtAction("AddMovie", new { id = movie.movieID, movie }));
 }
 public void Delete(MovieProp movie)
 {
     _dataContext.Movies.Remove(movie);
     _dataContext.SaveChanges();
 }
 public void Add(MovieProp movie)
 {
     _dataContext.Movies.Add(movie);
     _dataContext.SaveChanges();
 }
Esempio n. 5
0
 public void Edit(MovieProp movie)
 {
     _moviePropRepository.Edit(movie);
 }
Esempio n. 6
0
 public void Delete(MovieProp movie)
 {
     _moviePropRepository.Delete(movie);
 }
Esempio n. 7
0
 public void Add(MovieProp movie)
 {
     _moviePropRepository.Add(movie);
 }