public TodoElement ToElement() { var element = new TodoElement { Id = Id, Name = Name, Position = Position, RemainingCount = Items.Count(i => !i.Done) }; return(element); }
public void UpdateFrom(TodoElement fromElement) { base.UpdateFrom(fromElement); Position = fromElement.Position; }