public Movie EditMovie(Movie movie) { string connectionString = Utility.Util.GetConnectionString(MoviesStore.Service.Common.Util.MasterDataManager.ConfigData["MoviesStoreDb"]); string providerName = Utility.Util.GetProviderName(MoviesStore.Service.Common.Util.MasterDataManager.ConfigData["MoviesStoreDb"]); string spName = MoviesStore.Service.Common.Util.MasterDataManager.ConfigData["EditMovie"]; try { return(_movieRepository.EditMovie(movie, spName, providerName, connectionString)); } catch (Exception e) { throw e.InnerException; } }
public void EditMovie(int id, MovieViewModel movieModel) { _moviesRepository.EditMovie(id, movieModel); }