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();
 }
예제 #5
0
 public void Edit(MovieProp movie)
 {
     _moviePropRepository.Edit(movie);
 }
예제 #6
0
 public void Delete(MovieProp movie)
 {
     _moviePropRepository.Delete(movie);
 }
예제 #7
0
 public void Add(MovieProp movie)
 {
     _moviePropRepository.Add(movie);
 }