﻿ function RejectConnection(fromuser, touser, id)
{
    if(confirm('Từ chối kết nối?'))
        $.ajax({
            type: "GET",
            url: "/Backend/RejectConnection.ashx",
            data: "fUsr=" + fromuser + "&tUsr=" + touser,
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            cache: false,
            success: function() {
                GetMemberConnectionCallback(id); 
            }
        });
    
}

function GetMemberConnectionCallback(id)
{
    $('#divRequest' + id).remove();
}