Example #1
0
 /// <summary>
 /// BIStatistic/SetBIUserData
 /// </summary>
 public ResponseModel SetBIUserData(BuryingPointEntity request)
 {
     this.Remote.Action  = "SetBIUserData";
     this.Remote.Content = request.JsonSerialize();
     _JSON = this.Remote.GetRemoteData();
     return(_JSON.JsonDeserialize <ResponseModel>());
 }
Example #2
0
 public HttpResponseMessage SetBIUserData([FromBody] BuryingPointEntity userData)
 {
     try
     {
         var db = new RedisOperation(RedisDBEnum.Default);
         db.InsertListQueue(RedisKeys.BIBuryingKey, userData);
         return(Request.CreateResponse(HttpStatusCode.OK, new ResponseModel
         {
             Code = ResponseCode.Success,
             Message = "success"
         }));
     }
     catch (Exception ex)
     {
         return(Request.CreateResponse(HttpStatusCode.OK, new ResponseModel
         {
             Code = ResponseCode.Fail,
             Message = "fail:" + ex.Message
         }));
     }
 }