//Put:api/Analyze/5
 public IHttpActionResult Put(string id, [FromBody] CCTVVideoAnalyze analyze)
 {
     if (id == null)
     {
         return(BadRequest("无效的VideoId标识"));
     }
     if (analyze == null)
     {
         return(BadRequest("提交的数据是空值"));
     }
     AnalyzePersistence.Instance.Put(id, analyze);
     return(Ok("修改视频分析信息成功"));
 }
 // POST: api/Analyze
 public IHttpActionResult Post([FromBody] CCTVVideoAnalyze analyze)
 {
     if (analyze == null)
     {
         return(BadRequest("提交的数据是空值"));
     }
     if (string.IsNullOrWhiteSpace(analyze.VideoId))
     {
         return(BadRequest("无效的VideoId标识"));
     }
     AnalyzePersistence.Instance.Put(analyze.VideoId, analyze);
     return(Ok("添加视频分析信息成功"));
 }
 public void PutVideoAnalyzeInfo(CCTVVideoAnalyze info, bool isDeleted)
 {
     PutDefaultInfo <CCTVVideoAnalyze>(CCTVInfoType.VideoAnalyzeInfo, info.VideoId, info, isDeleted);
 }