Пример #1
0
 public static void UpdateCard(ReadCard readCard, EditCard editCard)
 {
     if (readCard != null && editCard != null)
     {
         readCard.Name        = editCard.Name;
         readCard.Description = editCard.Description;
         readCard.DueDate     = editCard.DueDate;
     }
 }
Пример #2
0
 public EditCard(ReadCard card)
 {
     if (card != null)
     {
         CardId      = card.CardId;
         Name        = String.Copy(card.Name);
         Description = String.Copy(card.Description);
         Timestamp   = card.Timestamp;
         DueDate     = card.DueDate;
     }
 }
Пример #3
0
 public static void UpdateCard(ReadCard card, BasicCardDTO dto)
 {
     card.Description = dto.Description;
     card.DueDate     = dto.DueDate;
     card.Name        = dto.Name;
 }