Exemplo n.º 1
0
        protected string GetUserAmount()
        {
            string amount = string.Empty;

            BLL.orders bll = new BLL.orders();
            DataTable  dt  = bll.GetSellTotal().Tables[0];

            if (dt.Rows.Count > 0)
            {
                amount = dt.Rows[0]["order_amount"].ToString();
            }
            else
            {
                amount = "0";
            }

            return(amount);
        }