コード例 #1
0
 public static object Verify(RegistrationToken token)
 {
     var cookie = Utils.TryLogin();
     token.Amount = amount;
     token.Period = period;
     token.City = city;
     token.DeviceId = deviceId;
     return Utils.ExecuteConfigurationService(cookie, "RMFUserManagementService", "Verify", new {
         token
     });
 }
コード例 #2
0
ファイル: Register.aspx.cs プロジェクト: ASalihov/RegPagesBPM
        public static object Register(RegistrationToken token)
        {
            var cookie = Utils.TryLogin();
            token.Amount = HttpContext.Current.Session["sum"] == null ? 0 : Convert.ToDecimal(HttpContext.Current.Session["sum"].ToString());
            token.Period = HttpContext.Current.Session["period"] == null ? 0 : Convert.ToInt32(HttpContext.Current.Session["period"].ToString());
            token.City = HttpContext.Current.Session["city"] == null ? string.Empty : HttpContext.Current.Session["city"].ToString();
            token.DeviceId = HttpContext.Current.Session["deviceId"] == null ? string.Empty : HttpContext.Current.Session["deviceId"].ToString();
            token.UniqueClientId = HttpContext.Current.Session["cidbpm"] == null ? string.Empty : HttpContext.Current.Session["cidbpm"].ToString();

            token.TypeBpm = HttpContext.Current.Session["type_bpm"] == null ? string.Empty : HttpContext.Current.Session["type_bpm"].ToString();
            token.UtmSource = HttpContext.Current.Session["utm_source_bpm"] == null ? string.Empty : HttpContext.Current.Session["utm_source_bpm"].ToString();
            token.UtmMedium = HttpContext.Current.Session["utm_medium_bpm"] == null ? string.Empty : HttpContext.Current.Session["utm_medium_bpm"].ToString();
            token.UtmCampaign = HttpContext.Current.Session["utm_campaign_bpm"] == null ? string.Empty : HttpContext.Current.Session["utm_campaign_bpm"].ToString();
            token.UtmContent = HttpContext.Current.Session["utm_content_bpm"] == null ? string.Empty : HttpContext.Current.Session["utm_content_bpm"].ToString();
            token.UtmTerm = HttpContext.Current.Session["utm_term_bpm"] == null ? string.Empty : HttpContext.Current.Session["utm_term_bpm"].ToString();
            return Utils.ExecuteConfigurationService(cookie, "RMFUserManagementService", "Register", new
            {
                token
            });
        }