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); } }
public void Post([FromBody] SaveArticleDetailsByGuid content) { _sitecoreSaver.SaveArticleDetails(content.ArticleGuid, content.ArticleData, false, false); }