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

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

            Position = fromElement.Position;
        }