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(); }
public void Edit(MovieProp movie) { _moviePropRepository.Edit(movie); }
public void Delete(MovieProp movie) { _moviePropRepository.Delete(movie); }
public void Add(MovieProp movie) { _moviePropRepository.Add(movie); }