Beispiel #1
0
 private void UpdatePlannedPostPropertiesIfApplicable(BlogPost postToEdit, ITrelloCard card)
 {
     if (card.ListName == PlannedPostsListName)
     {
         card.DueDate = postToEdit.DraftDate.SafeToMidnightEastern();
         card.UpdateLabels(Board.GetLabelsForCompany(postToEdit.BlogCompanyName));
         card.UpdateMembers(Board.GetMembersWithUserNames(postToEdit.AuthorTrelloUserName, postToEdit.EditorTrelloUserName));
     }
 }
 private void UpdatePlannedPostPropertiesIfApplicable(Whitepaper whitepaperToEdit, ITrelloCard card)
 {
     if (card.ListName == PlannedPostsListName)
     {
         card.DueDate = whitepaperToEdit.TargetOutlineDate.SafeToMidnightEastern();
         card.UpdateLabels(Board.GetLabelsForCompany(whitepaperToEdit.Blog.CompanyName));
         card.UpdateMembers(Board.GetMembersWithUserNames(whitepaperToEdit.AuthorTrelloUserName, whitepaperToEdit.EditorTrelloUserName));
     }
 }