private decimal GetMainBalance(string loginid)
    {
        decimal   balance = 0;
        DataTable dt      = new DataTable();

        try
        {
            dt = ob_wallet.getMainBalance(loginid);
            if (dt.Rows.Count > 0)
            {
                balance = Convert.ToDecimal(dt.Rows[0]["Amount"]);
            }
        }
        catch
        { }
        return(balance);
    }