﻿function AjaxService(postData, methodName, callback) {
    $.ajax({
        type: "POST",
        contentType: "application/json;utf-8",
        url: "/Service/AjaxService.asmx/" + methodName,
        data: $.toJSON(postData),
        dataType: "json",
        success: callback
    });
}
function AjaxServiceNoData(methodName, callback) {
    $.ajax({
        type: "POST",
        contentType: "application/json;utf-8",
        url: "/Service/AjaxService.asmx/" + methodName,
        data: "{}",
        dataType: "json",
        success: callback,
        error: function (result) {
            

         }
    });
}
var Post = {
    Ajax: function (postData, methodName, callback, error) {
        $.ajax({
            type: "POST",
            contentType: "application/json;utf-8",
            url: "/Service/AjaxService.asmx/" + methodName,
            data: postData == null ? "{}" : $.toJSON(postData),
            dataType: "json",
            success: callback,
            error: error
        });
    }
}
