public void UpdateMenu(string id, string feedId, WhMenuDay day, string menuHtml) { lock (Locking) { this.conn.InsertOrReplace(ConvertMenu(id, feedId, day, menuHtml)); } }
private static SqlMenu ConvertMenu(string id, string feedId, WhMenuDay day, string menu) { return(new SqlMenu { Id = id, FeedId = feedId, Date = day.Date, ContentHash = day.ContentHash, HtmlPage = menu }); }