all files / js/search/ search.service.js

28.57% Statements 2/7
100% Branches 0/0
0% Functions 0/3
28.57% Lines 2/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19                                 
/**
 * Created by cklimkowsky on 2/27/15.
 */
angular
    .module('coopEval')
    .service('searchService', searchService);
 
function searchService($http) {
 
    var urlBase = 'services/SearchService'
 
    this.getSearchCriteria = function () {
        return $http.get(urlBase + '/getSearchCriteria');
    };
 
    this.getSearchResults = function (searchCriteria) {
        return $http.post(urlBase + '/getSearchResults', searchCriteria);
    };
}