private void GetShowCount() { string Timestamp = "1368781342950"; long NewTimestamp = 0; VipBLL vipService = new VipBLL(Default.GetLoggingSession()); int count = vipService.GetShowCount(Convert.ToInt64(Timestamp), out NewTimestamp); }
public string GetShowCount() { string Timestamp = Request["Timestamp"].ToString().Trim(); if (Timestamp == null || Timestamp.Equals("")) { Timestamp = "0"; } string content = string.Empty; VipBLL vipService = new VipBLL(Default.GetLoggingSession()); var respData = new RespData(); try { respData.Code = "200"; respData.Description = "操作成功"; respData.count = vipService.GetShowCount(Convert.ToInt64(Timestamp), out respData.NewTimestamp); } catch (Exception ex) { respData.Code = "201"; respData.Description = "操作失败"; respData.Exception = ex.ToString(); } content = respData.ToJSON(); return(content); }