Пример #1
0
        public HttpResponseMessage GetBTCAddminAddress(dynamic SearchForm)
        {
            try
            {
                string BTCType = string.Empty;
                BTCType = (string)SearchForm.BTCType;

                DataTable dt  = new DataTable();
                UserClass CLE = new UserClass();
                dt = CLE.BTCAdminAddress(BTCType);
                string Blance = "";
                if (dt.Rows.Count > 0)
                {
                    Blance = dt.Rows[0]["Address"].ToString();
                }
                return(Request.CreateResponse(HttpStatusCode.OK, Blance));
            }
            catch (Exception ex)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, "500_Internal_Server_Error"));
            }
        }