src/Modules/SimplCommerce.Module.PaymentPaypalExpress/wwwroot/admin/config/paypalExpress-service.js (19 lines of code) (raw):

/*global angular*/ (function () { angular .module('simplAdmin.paymentPaypalExpress') .factory('paypalExpressService', ['$http', paypalExpressService]); function paypalExpressService($http) { var service = { getSettings: getSettings, updateSetting: updateSetting }; return service; function getSettings() { return $http.get('api/paypal-express/config'); } function updateSetting(settings) { return $http.put('api/paypal-express/config', settings); } } })();