예제 #1
0
 public static void SaveArticleDetailsByGuid(Guid articleGuid, ArticleStruct articleData)
 {
     TimezoneUtil.ConvertArticleDatesToServerTimezone(articleData);
     using (var client = new HttpClient(_handler, false))
     {
         var article = new SaveArticleDetailsByGuid()
         {
             ArticleGuid = articleGuid, ArticleData = articleData
         };
         var response = client.PostAsJsonAsync($"{$"{Constants.EDITOR_ENVIRONMENT_SERVERURL}" + "/api/"}SaveArticleDetailsByGuid", article).Result;
         TimezoneUtil.ConvertArticleDatesToLocalTimezone(articleData);
     }
 }
예제 #2
0
 public void Post([FromBody] SaveArticleDetailsByGuid content)
 {
     _sitecoreSaver.SaveArticleDetails(content.ArticleGuid, content.ArticleData, false, false);
 }