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; } }
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; } }
public static void UpdateCard(ReadCard card, BasicCardDTO dto) { card.Description = dto.Description; card.DueDate = dto.DueDate; card.Name = dto.Name; }