예제 #1
0
        public TodoElement ToElement()
        {
            var element = new TodoElement
            {
                Id             = Id,
                Name           = Name,
                Position       = Position,
                RemainingCount = Items.Count(i => !i.Done)
            };

            return(element);
        }
예제 #2
0
        public void UpdateFrom(TodoElement fromElement)
        {
            base.UpdateFrom(fromElement);

            Position = fromElement.Position;
        }