private string NoticeBody(SiteSettings ss, Notification notification, bool update = false) { var body = new System.Text.StringBuilder(); notification.ColumnCollection(ss, update)?.ForEach(column => { switch (column.Name) { case "Title": body.Append(Title.ToNotice( SavedTitle, column, Title_Updated(), update)); break; case "Body": body.Append(Body.ToNotice( SavedBody, column, Body_Updated(), update)); break; case "Comments": body.Append(Comments.ToNotice( SavedComments, column, Comments_Updated(), update)); break; case "Creator": body.Append(Creator.ToNotice( SavedCreator, column, Creator_Updated(), update)); break; case "Updator": body.Append(Updator.ToNotice( SavedUpdator, column, Updator_Updated(), update)); break; case "CreatedTime": body.Append(CreatedTime.ToNotice( SavedCreatedTime, column, CreatedTime_Updated(), update)); break; } }); return(body.ToString()); }