public List <Producer> GetAllProducers() { 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["GetAllProducers"]; try { return(_producerRepository.GetAllProducers(spName, providerName, connectionString)); } catch (Exception e) { throw e.InnerException; } }
public IEnumerable <Producer> GetAllProducers() { var result = _producerRepository.GetAllProducers(); return(result); }