{"size": 777, "ext": "js", "max_stars_repo_path": "src/wwwroot/js/services/clientService.js", "max_stars_repo_name": "waqaskhan540/identityserver-admin-dashboard", "max_stars_repo_stars_event_min_datetime": "2017-11-08T06:13:15.000Z", "max_stars_repo_stars_event_max_datetime": "2020-09-03T04:46:41.000Z", "max_issues_repo_path": "src/wwwroot/js/services/clientService.js", "max_issues_repo_name": "waqaskhan540/identityserver-admin-dashboard", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/wwwroot/js/services/clientService.js", "max_forks_repo_name": "waqaskhan540/identityserver-admin-dashboard", "max_forks_repo_forks_event_min_datetime": "2017-10-16T10:36:11.000Z", "max_forks_repo_forks_event_max_datetime": "2019-10-27T15:07:30.000Z"}
{"max_stars_count": 13, "max_issues_count": null, "max_forks_count": 5, "avg_line_length": 25.9, "max_line_length": 90, "alphanum_fraction": 0.4401544402}
﻿var clientService = {
    post: (url, clientData, successCallback, failedCallback) => {

        $.ajax({
            method: "POST",
            url: url,
            traditional:true,
            data: clientData,
            success: function (data) {
                successCallback(data);
            },
            error: function (err) {
                failedCallback(err);
            }
        
        })
    },
    updateClientStatus : (url,clientId, enableStatus, successCallback,failedCallback) => {
        $.ajax({
            method: "GET",
            url:url,
            success: function (data) {
                successCallback(data)
            },
            error: function (err) {
                failedCallback(err);
            }
        })
    }
}